結果
問題 |
No.29 パワーアップ
|
ユーザー |
![]() |
提出日時 | 2017-02-17 15:23:54 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 91 ms / 5,000 ms |
コード長 | 68 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-30 22:58:48 |
合計ジャッジ時間 | 2,976 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,*a=$<.read.split;s=0;(a|[]).map{|i|c=a.count i;s+=c/2*4+c%2};p s/4