結果
問題 |
No.29 パワーアップ
|
ユーザー |
![]() |
提出日時 | 2020-01-15 04:02:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 857 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-29 21:26:25 |
合計ジャッジ時間 | 1,754 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <iostream> int N, a, b, c, x, y, i = 11, I[11]; int main() { std::cin >> N; while (N-- && std::cin >> a >> b >> c) I[a]++, I[b]++, I[c]++; while (i--) x += I[i] / 2, y += I[i] % 2; std::cout << x + y / 4 << "\n"; }