結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー |
|
提出日時 | 2015-08-01 21:46:07 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 67 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 64 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 25,232 KB |
平均クエリ数 | 3.70 |
最終ジャッジ日時 | 2024-07-16 21:08:50 |
合計ジャッジ時間 | 3,542 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#!/usr/bin/python import sys n, k = map(int, raw_input().split()) x = (n-1) % (k+1) while 1: print x sys.stdout.flush() x += (k+1) cur = int(raw_input()) if cur >= n: exit(0)