結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー matcharate12matcharate12
提出日時 2022-01-05 19:10:13
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 302 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 1,493 ms
コンパイル使用メモリ 170,256 KB
実行使用メモリ 14,720 KB
最終ジャッジ日時 2024-04-23 23:33:36
合計ジャッジ時間 8,925 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 6 ms
5,376 KB
testcase_05 AC 6 ms
5,376 KB
testcase_06 AC 6 ms
5,376 KB
testcase_07 AC 7 ms
5,376 KB
testcase_08 AC 7 ms
5,376 KB
testcase_09 AC 8 ms
5,376 KB
testcase_10 AC 8 ms
5,376 KB
testcase_11 AC 7 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 2 ms
5,376 KB
testcase_17 AC 2 ms
5,376 KB
testcase_18 AC 1 ms
5,376 KB
testcase_19 AC 2 ms
5,376 KB
testcase_20 AC 2 ms
5,376 KB
testcase_21 AC 1 ms
5,376 KB
testcase_22 AC 2 ms
5,376 KB
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 2 ms
5,376 KB
testcase_25 AC 2 ms
5,376 KB
testcase_26 AC 2 ms
5,376 KB
testcase_27 AC 1 ms
5,376 KB
testcase_28 AC 2 ms
5,376 KB
testcase_29 AC 1 ms
5,376 KB
testcase_30 AC 2 ms
5,376 KB
testcase_31 AC 2 ms
5,376 KB
testcase_32 AC 94 ms
6,656 KB
testcase_33 AC 70 ms
5,888 KB
testcase_34 AC 149 ms
7,680 KB
testcase_35 AC 124 ms
7,040 KB
testcase_36 AC 150 ms
7,936 KB
testcase_37 AC 84 ms
6,144 KB
testcase_38 AC 80 ms
6,272 KB
testcase_39 AC 154 ms
7,936 KB
testcase_40 AC 107 ms
6,912 KB
testcase_41 AC 145 ms
7,808 KB
testcase_42 AC 96 ms
6,656 KB
testcase_43 AC 104 ms
6,940 KB
testcase_44 AC 133 ms
7,552 KB
testcase_45 AC 96 ms
6,784 KB
testcase_46 AC 159 ms
8,192 KB
testcase_47 AC 43 ms
5,376 KB
testcase_48 AC 99 ms
6,912 KB
testcase_49 AC 176 ms
8,320 KB
testcase_50 AC 91 ms
6,272 KB
testcase_51 AC 81 ms
6,016 KB
testcase_52 AC 215 ms
10,752 KB
testcase_53 AC 204 ms
10,752 KB
testcase_54 AC 284 ms
14,464 KB
testcase_55 AC 293 ms
14,720 KB
testcase_56 AC 302 ms
14,464 KB
testcase_57 AC 300 ms
14,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
      |                   ^

ソースコード

diff #

#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;
}
0