Submission #2792480

Source Code Expand

Copy
E=set(map(int, raw_input().split()))
B=int(raw_input())
L=set(map(int, raw_input().split()))
n = len(E.intersection(L))
if n == 6:
  tou = 1
elif n == 5:
  E.add(B)
  m = len(E.intersection(L))
  if m > n:
    tou = 2
  else:
    tou = 3
elif n == 4:
  tou = 4
elif n == 3:
  tou = 5
else:
  tou = 0
print tou

Submission Info

Submission Time
Task A - 宝くじ
User naoya_t
Language Python2 (2.7.6)
Score 100
Code Size 328 Byte
Status
Exec Time 10 ms
Memory 2568 KB

Test Cases

Set Name Score / Max Score Test Cases
All 100 / 100 00_1_01.txt, 00_1_02.txt, 00_2_01.txt, 00_2_02.txt, 00_3_01.txt, 00_3_02.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 00_sample_05.txt, 01_rand_00.txt, 01_rand_01.txt, 01_rand_02.txt, 01_rand_03.txt, 01_rand_04.txt, 01_rand_05.txt, 01_rand_06.txt, 01_rand_07.txt, 01_rand_08.txt, 01_rand_09.txt, 01_rand_10.txt, 01_rand_11.txt, 01_rand_12.txt, 01_rand_13.txt, 01_rand_14.txt, 01_rand_15.txt, 01_rand_16.txt, 01_rand_17.txt, 01_rand_18.txt, 01_rand_19.txt, 01_rand_20.txt, 01_rand_21.txt, 01_rand_22.txt, 01_rand_23.txt, 01_rand_24.txt, 01_rand_25.txt, 01_rand_26.txt, 01_rand_27.txt, 01_rand_28.txt, 01_rand_29.txt, 01_rand_30.txt, 01_rand_31.txt, 01_rand_32.txt, 01_rand_33.txt, 01_rand_34.txt, 01_rand_35.txt, 01_rand_36.txt, 01_rand_37.txt, 01_rand_38.txt, 01_rand_39.txt
Case Name Status Exec Time Memory
00_1_01.txt 10 ms 2568 KB
00_1_02.txt 10 ms 2568 KB
00_2_01.txt 10 ms 2568 KB
00_2_02.txt 10 ms 2568 KB
00_3_01.txt 10 ms 2568 KB
00_3_02.txt 10 ms 2568 KB
00_sample_01.txt 10 ms 2568 KB
00_sample_02.txt 10 ms 2568 KB
00_sample_03.txt 10 ms 2568 KB
00_sample_04.txt 10 ms 2568 KB
00_sample_05.txt 10 ms 2568 KB
01_rand_00.txt 10 ms 2568 KB
01_rand_01.txt 10 ms 2568 KB
01_rand_02.txt 10 ms 2568 KB
01_rand_03.txt 10 ms 2568 KB
01_rand_04.txt 10 ms 2568 KB
01_rand_05.txt 10 ms 2568 KB
01_rand_06.txt 10 ms 2568 KB
01_rand_07.txt 10 ms 2568 KB
01_rand_08.txt 10 ms 2568 KB
01_rand_09.txt 10 ms 2568 KB
01_rand_10.txt 10 ms 2568 KB
01_rand_11.txt 10 ms 2568 KB
01_rand_12.txt 10 ms 2568 KB
01_rand_13.txt 10 ms 2568 KB
01_rand_14.txt 10 ms 2568 KB
01_rand_15.txt 10 ms 2568 KB
01_rand_16.txt 10 ms 2568 KB
01_rand_17.txt 10 ms 2568 KB
01_rand_18.txt 10 ms 2568 KB
01_rand_19.txt 10 ms 2568 KB
01_rand_20.txt 10 ms 2568 KB
01_rand_21.txt 10 ms 2568 KB
01_rand_22.txt 10 ms 2568 KB
01_rand_23.txt 10 ms 2568 KB
01_rand_24.txt 10 ms 2568 KB
01_rand_25.txt 10 ms 2568 KB
01_rand_26.txt 10 ms 2568 KB
01_rand_27.txt 10 ms 2568 KB
01_rand_28.txt 10 ms 2568 KB
01_rand_29.txt 10 ms 2568 KB
01_rand_30.txt 10 ms 2568 KB
01_rand_31.txt 10 ms 2568 KB
01_rand_32.txt 10 ms 2568 KB
01_rand_33.txt 10 ms 2568 KB
01_rand_34.txt 10 ms 2568 KB
01_rand_35.txt 10 ms 2568 KB
01_rand_36.txt 10 ms 2568 KB
01_rand_37.txt 10 ms 2568 KB
01_rand_38.txt 10 ms 2568 KB
01_rand_39.txt 10 ms 2568 KB