Submission #9419340


Source Code Expand

Copy
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())
ST = [readline().split() for _ in range(N)]
X = read().rstrip()

S,T = zip(*ST)

i = S.index(X)

answer = sum(map(int,T[i+1:]))
print(answer)

Submission Info

Submission Time
Task A - Falling Asleep
User maspy
Language Python (3.4.3)
Score 200
Code Size 292 Byte
Status AC
Exec Time 17 ms
Memory 3060 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 2940 KB
max_04 AC 17 ms 2940 KB
random_01 AC 17 ms 3060 KB
random_02 AC 17 ms 3060 KB
random_03 AC 17 ms 2940 KB
random_04 AC 17 ms 2940 KB
random_05 AC 17 ms 2940 KB
sample_01 AC 17 ms 2940 KB
sample_02 AC 17 ms 3060 KB
sample_03 AC 17 ms 2940 KB