結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー rogi52rogi52
提出日時 2022-09-27 21:02:18
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 2,649 ms
コンパイル使用メモリ 207,300 KB
実行使用メモリ 14,260 KB
最終ジャッジ日時 2023-08-24 04:04:41
合計ジャッジ時間 10,306 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 3 ms
4,380 KB
testcase_05 AC 3 ms
4,380 KB
testcase_06 AC 3 ms
4,376 KB
testcase_07 AC 3 ms
4,380 KB
testcase_08 AC 3 ms
4,376 KB
testcase_09 AC 3 ms
4,376 KB
testcase_10 AC 4 ms
4,380 KB
testcase_11 AC 4 ms
4,384 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 2 ms
4,376 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 2 ms
4,380 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 2 ms
4,376 KB
testcase_27 AC 2 ms
4,380 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 1 ms
4,380 KB
testcase_30 AC 1 ms
4,376 KB
testcase_31 AC 2 ms
4,380 KB
testcase_32 AC 44 ms
6,324 KB
testcase_33 AC 30 ms
5,664 KB
testcase_34 AC 70 ms
7,380 KB
testcase_35 AC 59 ms
6,856 KB
testcase_36 AC 70 ms
7,728 KB
testcase_37 AC 36 ms
5,860 KB
testcase_38 AC 33 ms
6,252 KB
testcase_39 AC 81 ms
7,788 KB
testcase_40 AC 47 ms
6,592 KB
testcase_41 AC 71 ms
7,584 KB
testcase_42 AC 43 ms
6,264 KB
testcase_43 AC 46 ms
6,676 KB
testcase_44 AC 63 ms
7,468 KB
testcase_45 AC 47 ms
6,456 KB
testcase_46 AC 83 ms
8,200 KB
testcase_47 AC 18 ms
4,748 KB
testcase_48 AC 44 ms
6,592 KB
testcase_49 AC 89 ms
8,040 KB
testcase_50 AC 42 ms
6,060 KB
testcase_51 AC 34 ms
5,760 KB
testcase_52 AC 113 ms
10,460 KB
testcase_53 AC 113 ms
10,636 KB
testcase_54 AC 154 ms
14,260 KB
testcase_55 AC 149 ms
14,220 KB
testcase_56 AC 155 ms
14,228 KB
testcase_57 AC 150 ms
14,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    int N,M; cin >> N >> M;
    map<string,int> mp;
    rep(i,N) { string s; int a; cin >> s >> a; mp[s] = a; }
    rep(i,M) { string s; int a; cin >> s >> a; mp[s] = a; }
    for(auto [s, a] : mp) cout << s << " " << a << "\n";
}
0