結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-01-23 18:57:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 112 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 21,376 KB |
| 最終ジャッジ日時 | 2024-09-21 15:05:17 |
| 合計ジャッジ時間 | 8,324 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 1 -- * 21 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i
d=gets.split(" ").map(&:to_i).sort!
i=-1
p d.inject(0){|s,v| i+=1;d.index(v)==d.rindex(v) ? s+1 : s}