Submission #18763


Source Code Expand

Copy
#-*- coding: utf-8 -*-
import sys, string
c = int(sys.stdin.readline()[:-1])
str = sys.stdin.readline().translate(string.maketrans('ABCDF', '43210'))
sum = 0

str2 = [float(str[i]) for i in range(len(str))]

for i in str2:
    sum += i
print sum / c

Submission Info

Submission Time
Task A - GPA計算
User Hihumin
Language Python (2.7.3)
Score 0
Code Size 261 Byte
Status RE
Exec Time 112 ms
Memory 8100 KB

Judge Result

Set Name all
Score / Max Score 0 / 100
Status
RE × 32
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 RE 110 ms 8072 KB
00_sample_02.txt RE 107 ms 8076 KB
01_rnd_01.txt RE 107 ms 8080 KB
01_rnd_02.txt RE 107 ms 8080 KB
01_rnd_03.txt RE 107 ms 8080 KB
01_rnd_04.txt RE 107 ms 8076 KB
01_rnd_05.txt RE 106 ms 8068 KB
01_rnd_06.txt RE 110 ms 8100 KB
01_rnd_07.txt RE 112 ms 8088 KB
01_rnd_08.txt RE 108 ms 8076 KB
01_rnd_09.txt RE 111 ms 8092 KB
01_rnd_10.txt RE 111 ms 8000 KB
02_rndmax_01.txt RE 110 ms 8068 KB
02_rndmax_02.txt RE 107 ms 8068 KB
02_rndmax_03.txt RE 110 ms 8080 KB
02_rndmax_04.txt RE 111 ms 8076 KB
02_rndmax_05.txt RE 111 ms 8076 KB
02_rndmax_06.txt RE 111 ms 8076 KB
02_rndmax_07.txt RE 111 ms 8072 KB
02_rndmax_08.txt RE 110 ms 8080 KB
02_rndmax_09.txt RE 111 ms 8072 KB
02_rndmax_10.txt RE 112 ms 8092 KB
03_mini_01.txt RE 107 ms 8072 KB
03_mini_02.txt RE 111 ms 8076 KB
03_mini_03.txt RE 111 ms 8088 KB
03_mini_04.txt RE 111 ms 8072 KB
03_mini_05.txt RE 107 ms 8088 KB
04_samemax_01.txt RE 106 ms 8084 KB
04_samemax_02.txt RE 105 ms 8064 KB
04_samemax_03.txt RE 111 ms 8072 KB
04_samemax_04.txt RE 107 ms 8080 KB
04_samemax_05.txt RE 111 ms 8076 KB