Submission #18947


Source Code Expand

Copy
mport java.util.Scanner;

    public class Main {
            public static void main(String args[]){
            	Scanner input = new Scanner(System.in);
                   	int num = input.nextInt();
                   	String s = input.next();
                    System.out.println(maximum(num,s));
            }
            
          public static double maximum(int num,String s){
        	  double sum = 0.0;
        	  for(int i = 0 ; i < s.length(); i++){
        		  if(s.charAt(i) != 'F'){
        			  sum += (69-(int)s.charAt(i));
        		  }
        	  }
        	  return sum/(double)num;
          }

    }

Submission Info

Submission Time
Task A - GPA計算
User spinical
Language Java (OpenJDK 1.7.0)
Score 0
Code Size 645 Byte
Status CE

Compile Error

Main.java:1: class, interface, or enum expected
mport java.util.Scanner;
^
1 error