結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
|
提出日時 | 2016-10-21 12:25:28 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 25,488 KB |
平均クエリ数 | 3.70 |
最終ジャッジ日時 | 2024-07-17 00:32:12 |
合計ジャッジ時間 | 3,502 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
import sysN, K = map(int, raw_input().split())if N <= K:print N-1sys.stdout.flush()raw_input()exit()amari = (N-1)%(K+1)c = 0 if amari == 0 else amariprint csys.stdout.flush()i = int(raw_input())while i < N:c += K+1print csys.stdout.flush()i = int(raw_input())