結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー lllllll88938494lllllll88938494
提出日時 2023-05-09 03:09:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 301 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 87,932 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-08-17 00:17:27
合計ジャッジ時間 5,871 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
87,148 KB
testcase_01 AC 112 ms
87,032 KB
testcase_02 AC 113 ms
87,408 KB
testcase_03 AC 111 ms
87,592 KB
testcase_04 AC 127 ms
86,876 KB
testcase_05 AC 111 ms
87,180 KB
testcase_06 AC 112 ms
87,428 KB
testcase_07 AC 112 ms
87,396 KB
testcase_08 AC 113 ms
87,488 KB
testcase_09 AC 112 ms
87,740 KB
testcase_10 AC 112 ms
87,044 KB
testcase_11 AC 113 ms
87,744 KB
testcase_12 AC 112 ms
87,380 KB
testcase_13 AC 112 ms
87,932 KB
testcase_14 AC 112 ms
87,352 KB
testcase_15 AC 113 ms
87,412 KB
testcase_16 AC 113 ms
87,904 KB
testcase_17 AC 113 ms
87,408 KB
testcase_18 AC 113 ms
87,460 KB
testcase_19 AC 113 ms
87,448 KB
testcase_20 AC 113 ms
87,484 KB
testcase_21 AC 112 ms
87,120 KB
testcase_22 AC 111 ms
87,796 KB
testcase_23 AC 111 ms
87,676 KB
testcase_24 AC 110 ms
87,840 KB
testcase_25 AC 111 ms
87,228 KB
testcase_26 AC 113 ms
87,384 KB
testcase_27 AC 113 ms
87,664 KB
testcase_28 AC 115 ms
86,920 KB
testcase_29 AC 113 ms
87,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
if  (n-1)%(k+1) == 0:
    print(0,flush=True)
    now=int(input())
    if now >= n:
        exit()
else:
    now = 0

while True:
    a=((n-1)-now)%(k+1)
    print(a+now,flush=True)
    now = int(input())
    if now >= n:
        break
0