結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー atjh16atjh16
提出日時 2021-12-29 06:38:57
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 2,007 ms
コンパイル使用メモリ 200,640 KB
最終ジャッジ日時 2025-01-27 07:25:20
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 54
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int n, m, a;
string s;
map<string, int> Mp;

int main(){
    cin >> n >> m;
    
    for(int i = 0; i < n + m; i++){
        cin >> s >> a;
        Mp[s] = a;
    }
    
    for(auto e : Mp)
        cout << e.first << " " << e.second << endl;
}
0