Submission #23224643


Source Code Expand

N1,N2 = list(map(int, input().split()))
if(N1 == 0):
  if(N2 == 0):
  	print(0)
  if(N2 == 1):
  	print(2)
  if(N2 == 2):
  	print(1)
elif(N1 == 1):
  if(N2 == 0):
  	print(2)
  if(N2 == 1):
  	print(1)
  if(N2 == 2):
  	print(0)
elif(N1 == 2):
  if(N2 == 0):
  	print(1)
  if(N2 == 1):
  	print(0)
  if(N2 == 2):
  	print(2)

Submission Info

Submission Time
Task A - Rock-paper-scissors
User shu14
Language Python (3.8.2)
Score 100
Code Size 346 Byte
Status AC
Exec Time 25 ms
Memory 9212 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 9
Set Name Test Cases
Sample random_00.txt, random_01.txt
All random_00.txt, random_01.txt, random_02.txt, random_10.txt, random_11.txt, random_12.txt, random_20.txt, random_21.txt, random_22.txt
Case Name Status Exec Time Memory
random_00.txt AC 19 ms 9024 KiB
random_01.txt AC 21 ms 9024 KiB
random_02.txt AC 19 ms 9020 KiB
random_10.txt AC 25 ms 9032 KiB
random_11.txt AC 20 ms 9212 KiB
random_12.txt AC 18 ms 8912 KiB
random_20.txt AC 23 ms 8916 KiB
random_21.txt AC 23 ms 9076 KiB
random_22.txt AC 20 ms 8904 KiB