結果
| 問題 |
No.257 N言っちゃダメゲーム (3)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-23 21:05:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,880 KB |
| 平均クエリ数 | 3.73 |
| 最終ジャッジ日時 | 2024-07-16 11:55:50 |
| 合計ジャッジ時間 | 4,289 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 WA * 4 |
ソースコード
N,K=map(int,input().split())
x=0
while x<N:
if N==1:
print(0,flush=True)
elif N-x<=K+1:
print(N-1,flush=True)
else:
d = (N-1-x)%(K+1)
if d==0:d=K
if d<0:d+=K
print(x+d, flush=True)
x = int(input())