結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー yansi819yansi819
提出日時 2024-03-21 09:10:12
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 353 ms / 2,000 ms
コード長 481 bytes
コンパイル時間 5,019 ms
コンパイル使用メモリ 269,932 KB
実行使用メモリ 14,592 KB
最終ジャッジ日時 2024-03-21 09:10:28
合計ジャッジ時間 15,180 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 6 ms
6,676 KB
testcase_05 AC 7 ms
6,676 KB
testcase_06 AC 8 ms
6,676 KB
testcase_07 AC 7 ms
6,676 KB
testcase_08 AC 7 ms
6,676 KB
testcase_09 AC 9 ms
6,676 KB
testcase_10 AC 9 ms
6,676 KB
testcase_11 AC 8 ms
6,676 KB
testcase_12 AC 2 ms
6,676 KB
testcase_13 AC 3 ms
6,676 KB
testcase_14 AC 2 ms
6,676 KB
testcase_15 AC 2 ms
6,676 KB
testcase_16 AC 2 ms
6,676 KB
testcase_17 AC 2 ms
6,676 KB
testcase_18 AC 2 ms
6,676 KB
testcase_19 AC 2 ms
6,676 KB
testcase_20 AC 2 ms
6,676 KB
testcase_21 AC 2 ms
6,676 KB
testcase_22 AC 2 ms
6,676 KB
testcase_23 AC 2 ms
6,676 KB
testcase_24 AC 3 ms
6,676 KB
testcase_25 AC 2 ms
6,676 KB
testcase_26 AC 2 ms
6,676 KB
testcase_27 AC 2 ms
6,676 KB
testcase_28 AC 2 ms
6,676 KB
testcase_29 AC 2 ms
6,676 KB
testcase_30 AC 2 ms
6,676 KB
testcase_31 AC 2 ms
6,676 KB
testcase_32 AC 112 ms
6,676 KB
testcase_33 AC 84 ms
6,676 KB
testcase_34 AC 159 ms
7,680 KB
testcase_35 AC 138 ms
7,168 KB
testcase_36 AC 171 ms
7,936 KB
testcase_37 AC 91 ms
6,676 KB
testcase_38 AC 93 ms
6,676 KB
testcase_39 AC 174 ms
7,936 KB
testcase_40 AC 131 ms
6,912 KB
testcase_41 AC 164 ms
7,680 KB
testcase_42 AC 107 ms
6,676 KB
testcase_43 AC 114 ms
7,040 KB
testcase_44 AC 145 ms
7,680 KB
testcase_45 AC 109 ms
6,676 KB
testcase_46 AC 188 ms
8,192 KB
testcase_47 AC 49 ms
6,676 KB
testcase_48 AC 115 ms
6,784 KB
testcase_49 AC 197 ms
8,320 KB
testcase_50 AC 100 ms
6,676 KB
testcase_51 AC 89 ms
6,676 KB
testcase_52 AC 248 ms
10,752 KB
testcase_53 AC 243 ms
10,752 KB
testcase_54 AC 348 ms
14,592 KB
testcase_55 AC 313 ms
14,592 KB
testcase_56 AC 326 ms
14,592 KB
testcase_57 AC 353 ms
14,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;

int N, M;
map<string, int> A, ans;


int main() {
  cin >> N >> M;
  for (int i = 0; i < N; i++) {
    string s;
    int a;
    cin >> s >> a;
    A[s] = a;
  }
  for (int i = 0; i < M; i++) {
    string s;
    int a;
    cin >> s >> a;
    A[s] = a;
  }
  for (auto p: A) {
    cout << p.first << ' ' << p.second << endl;
  }
  return 0;
}
0