結果
| 問題 | No.249 N言っちゃダメゲーム (2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-03 15:37:33 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 439 bytes |
| 記録 | |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 24,620 KB |
| 最終ジャッジ日時 | 2026-03-20 05:47:11 |
| 合計ジャッジ時間 | 1,930 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 RE * 2 |
ソースコード
from sys import stdin
def main():
NK = stdin.read().splitlines()
players = ['you', 'grant']
points = {'you': 0, 'grant': 0}
for i, s in enumerate(NK):
n, k = map(int, s.split())
if i > 0 and n % k != 1:
players[0], players[1] = players[1], players[0]
if n % k == 1:
points[players[0]] += 1
else:
points[players[1]] += 1
print(points['you'])
main()