提出 #46798443


ソースコード 拡げる

n=int(input())
syusya=[0 for _ in range(24)]

for _ in range(n):
  w,x=map(int,input().split())
  for i in range(9):
    t = (x+i)%24
    syusya[t] += w
print(max(syusya))

提出情報

提出日時
問題 B - World Meeting
ユーザ gootara
言語 Python (PyPy 3.10-v7.3.12)
得点 250
コード長 179 Byte
結果 AC
実行時間 65 ms
メモリ 82328 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 250 / 250
結果
AC × 3
AC × 24
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 57 ms 76484 KiB
00_sample_01.txt AC 56 ms 76380 KiB
00_sample_02.txt AC 56 ms 76484 KiB
01_random_00.txt AC 65 ms 82040 KiB
01_random_01.txt AC 65 ms 82000 KiB
01_random_02.txt AC 57 ms 76628 KiB
01_random_03.txt AC 64 ms 82068 KiB
01_random_04.txt AC 65 ms 82328 KiB
01_random_05.txt AC 64 ms 82120 KiB
01_random_06.txt AC 65 ms 82048 KiB
01_random_07.txt AC 65 ms 82236 KiB
01_random_08.txt AC 65 ms 81860 KiB
01_random_09.txt AC 65 ms 82152 KiB
01_random_10.txt AC 65 ms 82056 KiB
01_random_11.txt AC 65 ms 82100 KiB
01_random_12.txt AC 65 ms 82144 KiB
01_random_13.txt AC 65 ms 81916 KiB
01_random_14.txt AC 65 ms 81864 KiB
01_random_15.txt AC 59 ms 80968 KiB
01_random_16.txt AC 57 ms 76348 KiB
01_random_17.txt AC 64 ms 81772 KiB
01_random_18.txt AC 64 ms 82124 KiB
01_random_19.txt AC 57 ms 76416 KiB
01_random_20.txt AC 56 ms 76552 KiB