Submission #18890


Source Code Expand

Copy
import 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.nextLine();
                    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 648 Byte
Status WA
Exec Time 470 ms
Memory 20672 KB

Judge Result

Set Name all
Score / Max Score 0 / 100
Status
AC × 3
WA × 29
Set Name Test Cases
all 00_sample_01.txt, 00_sample_02.txt, 01_rnd_01.txt, 01_rnd_02.txt, 01_rnd_03.txt, 01_rnd_04.txt, 01_rnd_05.txt, 01_rnd_06.txt, 01_rnd_07.txt, 01_rnd_08.txt, 01_rnd_09.txt, 01_rnd_10.txt, 02_rndmax_01.txt, 02_rndmax_02.txt, 02_rndmax_03.txt, 02_rndmax_04.txt, 02_rndmax_05.txt, 02_rndmax_06.txt, 02_rndmax_07.txt, 02_rndmax_08.txt, 02_rndmax_09.txt, 02_rndmax_10.txt, 03_mini_01.txt, 03_mini_02.txt, 03_mini_03.txt, 03_mini_04.txt, 03_mini_05.txt, 04_samemax_01.txt, 04_samemax_02.txt, 04_samemax_03.txt, 04_samemax_04.txt, 04_samemax_05.txt
Case Name Status Exec Time Memory
00_sample_01.txt WA 438 ms 20592 KB
00_sample_02.txt AC 435 ms 20664 KB
01_rnd_01.txt WA 439 ms 20600 KB
01_rnd_02.txt WA 431 ms 20600 KB
01_rnd_03.txt WA 436 ms 20536 KB
01_rnd_04.txt WA 434 ms 20528 KB
01_rnd_05.txt WA 450 ms 20656 KB
01_rnd_06.txt WA 431 ms 20672 KB
01_rnd_07.txt WA 455 ms 20532 KB
01_rnd_08.txt WA 438 ms 20584 KB
01_rnd_09.txt WA 433 ms 20600 KB
01_rnd_10.txt WA 436 ms 20596 KB
02_rndmax_01.txt WA 441 ms 20576 KB
02_rndmax_02.txt WA 441 ms 20596 KB
02_rndmax_03.txt WA 438 ms 20592 KB
02_rndmax_04.txt WA 435 ms 20588 KB
02_rndmax_05.txt WA 440 ms 20596 KB
02_rndmax_06.txt WA 436 ms 20660 KB
02_rndmax_07.txt WA 438 ms 20596 KB
02_rndmax_08.txt WA 437 ms 20592 KB
02_rndmax_09.txt WA 440 ms 20596 KB
02_rndmax_10.txt WA 438 ms 20524 KB
03_mini_01.txt WA 436 ms 20464 KB
03_mini_02.txt WA 434 ms 20468 KB
03_mini_03.txt WA 443 ms 20572 KB
03_mini_04.txt WA 470 ms 20616 KB
03_mini_05.txt AC 440 ms 20468 KB
04_samemax_01.txt WA 436 ms 20556 KB
04_samemax_02.txt WA 432 ms 20600 KB
04_samemax_03.txt WA 436 ms 20584 KB
04_samemax_04.txt WA 436 ms 20600 KB
04_samemax_05.txt AC 443 ms 20608 KB