結果
| 問題 |
No.29 パワーアップ
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-06-06 10:33:43 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 220 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 8,064 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2025-10-24 20:57:38 |
| 合計ジャッジ時間 | 2,941 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 17 |
コンパイルメッセージ
Syntax OK
ソースコード
n=STDIN.gets.to_i
as=[0,0,0,0,0,0,0,0,0,0,0]
n.times do |i|
a,b,c=STDIN.gets.split(" ")
as[a.to_i]+=1
as[b.to_i]+=1
as[c.to_i]+=1
end
ans=0
sum=0
10.times do |i|
ans+=as[i]/2
sum+=as[i]%2
end
ans+=(sum/4)
puts ans
horiesiniti