結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
harhogefoo
|
| 提出日時 | 2016-10-12 07:58:17 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 148 bytes |
| 記録 | |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 22,440 KB |
| 最終ジャッジ日時 | 2026-05-16 06:22:12 |
| 合計ジャッジ時間 | 8,681 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 WA * 3 TLE * 1 -- * 11 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_i
a = gets.chomp.split(" ").map(&:to_i).sort
(a.length - 1).times do |i|
if a[i] == a[i+1]
a.delete(a[i])
end
end
puts a.length
harhogefoo