結果
問題 |
No.257 N言っちゃダメゲーム (3)
|
ユーザー |
|
提出日時 | 2016-12-23 20:54:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,880 KB |
平均クエリ数 | 8.60 |
最終ジャッジ日時 | 2024-07-16 11:55:40 |
合計ジャッジ時間 | 4,304 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 30 |
ソースコード
import sys N,K=map(int,input().split()) x=0 while True: if N==1: print(0) else: d = (N-1-x)%K if d==0:d=K if d<0:d+=K print(x+d, flush=True) x = int(input()) if x>N:break