Submission #19086


Source Code Expand

Copy
#include<iostream>
using namespace std;
int main(){
  int n = 0;
  cin.sync_with_stdio(false);
  cin >> n;
  char c;
  double sum = 0;
  int rate = 0;
  for(int i = 0;i < n;i++){
    cin >> c;
    rate = 'F' - c - 1;
    if(rate > 0){
      sum += rate;
    }
  }
  cout.precision(9);
  cout << sum/n << endl;
  return 0;
}

Submission Info

Submission Time
Task A - GPA計算
User kiripon
Language C (GCC 4.4.7)
Score 0
Code Size 344 Byte
Status CE

Compile Error

./Main.c:1: fatal error: iostream: No such file or directory
compilation terminated.