結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
かりあげクン
|
| 提出日時 | 2020-08-24 10:00:03 |
| 言語 | Nim (2.2.8) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 300µs | |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 4,229 ms |
| コンパイル使用メモリ | 70,260 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-15 22:33:44 |
| 合計ジャッジ時間 | 4,202 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
かりあげクン