結果
| 問題 |
No.241 出席番号(1)
|
| ユーザー |
sugim48
|
| 提出日時 | 2015-07-10 22:32:37 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 984 ms / 2,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 886 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2024-11-30 21:20:05 |
| 合計ジャッジ時間 | 5,803 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
コンパイルメッセージ
Main.rb:19: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
n = gets.to_i
a = []
n.times { |i|
a[i] = gets.to_i
}
100000.times {
b = (0...n).to_a.shuffle
ok = true
n.times { |i|
ok = false if b[i] == a[i]
}
if ok
n.times { |i|
puts b[i]
}
exit
end
}
puts -1
sugim48