結果
問題 | No.1795 AtCoder Heuristic Rating coloring |
ユーザー |
|
提出日時 | 2022-01-05 19:10:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 330 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 1,831 ms |
コンパイル使用メモリ | 176,284 KB |
実行使用メモリ | 14,464 KB |
最終ジャッジ日時 | 2024-11-06 05:57:06 |
合計ジャッジ時間 | 10,421 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 54 |
コンパイルメッセージ
main.cpp: In function 'int main()': main.cpp:17:19: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 17 | for(auto& [k,v] : R) cout << k << " " << v << endl; | ^
ソースコード
#include <bits/stdc++.h> #define rep(i,a,b) for(int i = (a); i < (b); i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using Graph = vector<vector<int>>; int main(void){ int n,m; cin >> n >> m; map<string,int> R; rep(i,0,n+m){ string name; cin >> name; int r; cin >> r; R[name] = r; } for(auto& [k,v] : R) cout << k << " " << v << endl; }