Submission #10184073


Source Code Expand

N = int(input())
S = []
T = []

for i in range(N):
    s, t = input().split()
    t = int(t)
    S.append(s)
    T.append(t)

X = input()
num = None

for i in range(N):
    if X == S[i]:
        num = i + 1
        break

total = sum(T[num:N])

print(total)

Submission Info

Submission Time
Task A - Falling Asleep
User yu5shi8
Language Python (3.4.3)
Score 200
Code Size 277 Byte
Status AC
Exec Time 18 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 12
Set Name Test Cases
Sample sample_01, sample_02, sample_03
All max_01, max_02, max_03, max_04, random_01, random_02, random_03, random_04, random_05, sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
max_01 AC 17 ms 3060 KB
max_02 AC 17 ms 3060 KB
max_03 AC 17 ms 3064 KB
max_04 AC 17 ms 3064 KB
random_01 AC 17 ms 3060 KB
random_02 AC 17 ms 3064 KB
random_03 AC 17 ms 2940 KB
random_04 AC 17 ms 3060 KB
random_05 AC 17 ms 2940 KB
sample_01 AC 18 ms 3060 KB
sample_02 AC 17 ms 2940 KB
sample_03 AC 17 ms 3060 KB