結果
問題 |
No.3031 曲面の向き付け
|
ユーザー |
|
提出日時 | 2025-02-21 22:45:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 2,843 ms |
コンパイル使用メモリ | 198,780 KB |
実行使用メモリ | 17,664 KB |
最終ジャッジ日時 | 2025-02-21 22:45:59 |
合計ジャッジ時間 | 5,737 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 WA * 15 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int m; cin >> m; map<int,int> mp; for(int i = 0; i < m; i++){ int a, b, c; cin >> a >> b >> c; mp[a]++, mp[b]++, mp[c]++; } int v2 = (*mp.begin()).second; for(auto [key, v] : mp){ if(v != v2){ cout << "NO\n"; return 0; } } cout << "YES\n"; }