結果

問題 No.257 N言っちゃダメゲーム (3)
ユーザー finefine
提出日時 2016-03-10 23:38:14
言語 Ruby
(3.3.0)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 11,552 KB
実行使用メモリ 31,616 KB
平均クエリ数 3.70
最終ジャッジ日時 2023-09-23 23:19:21
合計ジャッジ時間 5,484 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
31,388 KB
testcase_01 AC 117 ms
31,216 KB
testcase_02 AC 118 ms
30,664 KB
testcase_03 AC 117 ms
31,200 KB
testcase_04 AC 123 ms
30,920 KB
testcase_05 AC 119 ms
31,076 KB
testcase_06 AC 120 ms
30,644 KB
testcase_07 AC 117 ms
30,756 KB
testcase_08 AC 118 ms
30,876 KB
testcase_09 AC 116 ms
30,972 KB
testcase_10 AC 120 ms
30,832 KB
testcase_11 AC 119 ms
31,452 KB
testcase_12 AC 118 ms
31,288 KB
testcase_13 AC 120 ms
31,452 KB
testcase_14 AC 125 ms
31,364 KB
testcase_15 AC 122 ms
30,912 KB
testcase_16 AC 123 ms
31,004 KB
testcase_17 AC 125 ms
31,012 KB
testcase_18 AC 125 ms
31,304 KB
testcase_19 AC 118 ms
31,304 KB
testcase_20 AC 122 ms
30,868 KB
testcase_21 AC 123 ms
31,332 KB
testcase_22 AC 118 ms
31,316 KB
testcase_23 AC 119 ms
31,060 KB
testcase_24 AC 127 ms
30,896 KB
testcase_25 AC 125 ms
31,268 KB
testcase_26 AC 117 ms
30,924 KB
testcase_27 AC 120 ms
30,772 KB
testcase_28 AC 116 ms
31,420 KB
testcase_29 AC 114 ms
31,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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