結果
| 問題 |
No.29 パワーアップ
|
| コンテスト | |
| ユーザー |
mmmppp
|
| 提出日時 | 2017-02-17 15:02:46 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 93 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 7,936 KB |
| 実行使用メモリ | 20,224 KB |
| 最終ジャッジ日時 | 2025-10-24 21:00:03 |
| 合計ジャッジ時間 | 4,307 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 22 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Main.rb:1: warning: assigned but unused variable - i Syntax OK
ソースコード
n,*i=$<.map &:to_i
p a.uniq.reduce(0){|s,i|s+a.count(i)/2}+a.select{|i|a.count(i)&1>0}.size/4
mmmppp