提出 #53601090
ソースコード 拡げる
#!/usr/bin/env python3
def main():
N = int(input())
li = list()
goukei = 0
for i in range(N):
s, c = map(str, input().split())
li.append(s)
goukei += int(c)
li.sort()
kati = goukei%N
print(li[kati])
if __name__ == '__main__':
main()
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - AtCoder Janken 2 |
| ユーザ | rutent |
| 言語 | Python (PyPy 3.10-v7.3.12) |
| 得点 | 200 |
| コード長 | 325 Byte |
| 結果 | AC |
| 実行時間 | 59 ms |
| メモリ | 76648 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 01_hand_00.txt, 01_hand_01.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00.txt | AC | 56 ms | 76612 KiB |
| 00_sample_01.txt | AC | 56 ms | 76476 KiB |
| 01_hand_00.txt | AC | 58 ms | 76472 KiB |
| 01_hand_01.txt | AC | 59 ms | 76600 KiB |
| 02_random_00.txt | AC | 59 ms | 76480 KiB |
| 02_random_01.txt | AC | 56 ms | 76484 KiB |
| 02_random_02.txt | AC | 56 ms | 76640 KiB |
| 02_random_03.txt | AC | 56 ms | 76624 KiB |
| 02_random_04.txt | AC | 57 ms | 76472 KiB |
| 02_random_05.txt | AC | 57 ms | 76300 KiB |
| 02_random_06.txt | AC | 57 ms | 76648 KiB |
| 02_random_07.txt | AC | 58 ms | 76308 KiB |
| 02_random_08.txt | AC | 58 ms | 76300 KiB |
| 02_random_09.txt | AC | 58 ms | 76280 KiB |