結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
かりあげクン
|
| 提出日時 | 2020-08-24 10:00:03 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 3,917 ms |
| コンパイル使用メモリ | 68,416 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-10-24 21:15:47 |
| 合計ジャッジ時間 | 4,863 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
import strutils
import sequtils
import intsets
var
N = stdin.readLine.parseInt
ans = 0
counter = initIntSet()
for _ in 0 ..< N:
var abc = stdin.readLine.split.map(parseInt)
for item in abc:
if item in counter:
ans += 1
excl counter, item
else:
incl counter, item
ans += counter.len div 4
echo ans
かりあげクン