結果
問題 | No.355 数当てゲーム(2) |
ユーザー |
|
提出日時 | 2016-04-08 01:35:49 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 129 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 29,016 KB |
平均クエリ数 | 32.69 |
最終ジャッジ日時 | 2024-07-16 23:36:26 |
合計ジャッジ時間 | 9,745 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 52 |
コンパイルメッセージ
Syntax OK
ソースコード
$stdout.sync = truens = *0..9ns.first(8).combination(4) do |a|puts a.join(" ")x, y = gets.split.map(&:to_i)exit if x == 4 && y == 0begin ns -= a; break end if x == 0 && y == 0endns.combination(4) do |a|puts a.join(" ")x, y = gets.split.map(&:to_i)exit if x == 4 && y == 0if x + y == 4 thena.permutation do |a|puts a.join(" ")x, y = gets.split.map(&:to_i)exit if x == 4 && y == 0endendend