結果

問題 No.934 Explosive energy drink
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-12-06 12:03:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 779 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,516 KB
実行使用メモリ 31,664 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 19:17:00
合計ジャッジ時間 9,074 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
31,180 KB
testcase_01 AC 766 ms
31,168 KB
testcase_02 AC 95 ms
31,372 KB
testcase_03 AC 405 ms
31,016 KB
testcase_04 AC 760 ms
31,656 KB
testcase_05 AC 100 ms
31,008 KB
testcase_06 AC 100 ms
30,692 KB
testcase_07 AC 97 ms
31,020 KB
testcase_08 AC 100 ms
30,836 KB
testcase_09 AC 97 ms
31,160 KB
testcase_10 AC 96 ms
31,572 KB
testcase_11 AC 100 ms
30,708 KB
testcase_12 AC 107 ms
31,664 KB
testcase_13 AC 108 ms
31,252 KB
testcase_14 AC 107 ms
31,316 KB
testcase_15 AC 267 ms
31,312 KB
testcase_16 AC 134 ms
31,280 KB
testcase_17 AC 183 ms
31,156 KB
testcase_18 AC 187 ms
31,416 KB
testcase_19 AC 318 ms
31,604 KB
testcase_20 AC 531 ms
31,188 KB
testcase_21 AC 559 ms
31,208 KB
testcase_22 AC 779 ms
31,232 KB
testcase_23 AC 777 ms
31,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
S = (1 .. N).select do |n|
  puts "? #{N - 1}"
  puts (1 .. N).reject{|i| i == n }.join(' ')
  $stdout.flush
  gets.to_i == 0
end
puts "! #{S.size}"
puts S.join(' ')
$stdout.flush


0