結果
問題 |
No.29 パワーアップ
|
ユーザー |
![]() |
提出日時 | 2017-02-17 15:23:05 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 68 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-12-30 22:58:31 |
合計ジャッジ時間 | 3,008 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 22 |
コンパイルメッセージ
Main.rb:1: warning: possibly useless use of / in void context 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}/4;p s