結果
問題 |
No.249 N言っちゃダメゲーム (2)
|
ユーザー |
![]() |
提出日時 | 2018-07-23 16:34:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 329 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-29 14:32:19 |
合計ジャッジ時間 | 788 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 RE * 2 |
ソースコード
T = 1000 f = True ans = 0 for t in range(T): n, k = map(int, input().split()) x = (n-1) % (k+1) != 0 if f: if x: ans += 1 f = False else: f = True else: if not x: ans += 1 f = False else: f = True print(ans)