結果
| 問題 | No.257 N言っちゃダメゲーム (3) |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2016-05-08 14:24:45 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 151 ms / 2,000 ms |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 77,372 KB |
| 最終ジャッジ日時 | 2025-12-03 20:40:49 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
import sys
N,K=map(int,raw_input().split())
nex=(N-1)%(K+1)
print nex
sys.stdout.flush()
nex+=(K+1)
while True:
a=int(raw_input())
if a >= N:
exit()
else:
print nex
sys.stdout.flush()
nex+=(K+1)
yaoshimax