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