結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
|
提出日時 | 2015-08-03 16:18:02 |
言語 | Python2 (2.7.18) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 3.40 |
最終ジャッジ日時 | 2024-07-16 05:35:47 |
合計ジャッジ時間 | 3,827 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 WA * 3 |
ソースコード
# -*- coding:utf-8 -*- import sys if __name__ == "__main__": n,k = map(int,raw_input().split()) rest = n % (k+1) if rest == 1: now = 0 else: now = rest - 1 print now sys.stdout.flush() while True: opponent = input() if opponent >= n: exit() now += (k+1) print now sys.stdout.flush()