結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー 0w10w1
提出日時 2017-11-30 15:36:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 31,612 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-09-24 01:37:04
合計ジャッジ時間 6,057 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
30,764 KB
testcase_01 AC 104 ms
31,016 KB
testcase_02 AC 104 ms
31,372 KB
testcase_03 AC 104 ms
31,100 KB
testcase_04 AC 103 ms
31,340 KB
testcase_05 AC 105 ms
31,060 KB
testcase_06 AC 107 ms
31,544 KB
testcase_07 AC 115 ms
30,748 KB
testcase_08 AC 104 ms
31,248 KB
testcase_09 AC 104 ms
30,740 KB
testcase_10 AC 105 ms
30,912 KB
testcase_11 AC 105 ms
30,960 KB
testcase_12 AC 105 ms
31,572 KB
testcase_13 AC 110 ms
30,720 KB
testcase_14 AC 105 ms
30,660 KB
testcase_15 AC 102 ms
30,996 KB
testcase_16 AC 105 ms
31,272 KB
testcase_17 AC 104 ms
30,848 KB
testcase_18 AC 106 ms
31,280 KB
testcase_19 AC 103 ms
31,612 KB
testcase_20 AC 109 ms
31,348 KB
testcase_21 AC 104 ms
31,504 KB
testcase_22 AC 103 ms
31,272 KB
testcase_23 AC 103 ms
31,524 KB
testcase_24 AC 102 ms
30,848 KB
testcase_25 AC 104 ms
30,992 KB
testcase_26 AC 103 ms
30,760 KB
testcase_27 AC 113 ms
31,212 KB
testcase_28 AC 106 ms
31,272 KB
testcase_29 AC 107 ms
30,888 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,k = gets.split.map(&:to_i)
player = (n - 1) % (k + 1)
p player
STDOUT.flush
while gets.to_i < n
    player += k + 1
    p player
    STDOUT.flush
end
0