Submission #9993524


Source Code Expand

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

S, T = readline().split()
A, B = map(int, readline().split())
U = read().rstrip()

if S == U:
    A -= 1
else:
    B -= 1

print(A,B)

Submission Info

Submission Time
Task A - Remaining Balls
User maspy
Language Python3 (3.4.3)
Score 100
Code Size 264 Byte
Status
Exec Time 20 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 100 / 100 hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt 19 ms 2940 KB
hand_02.txt 19 ms 2940 KB
hand_03.txt 19 ms 3060 KB
hand_04.txt 19 ms 2940 KB
hand_05.txt 19 ms 2940 KB
hand_06.txt 19 ms 2940 KB
hand_07.txt 19 ms 2940 KB
hand_08.txt 20 ms 2940 KB
hand_09.txt 20 ms 2940 KB
sample_01.txt 19 ms 2940 KB
sample_02.txt 19 ms 2940 KB