結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー chocoruskchocorusk
提出日時 2021-12-24 23:01:40
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 329 ms / 2,000 ms
コード長 853 bytes
コンパイル時間 3,979 ms
コンパイル使用メモリ 196,048 KB
実行使用メモリ 14,588 KB
最終ジャッジ日時 2023-10-20 07:57:38
合計ジャッジ時間 11,431 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 7 ms
4,348 KB
testcase_05 AC 6 ms
4,348 KB
testcase_06 AC 7 ms
4,348 KB
testcase_07 AC 7 ms
4,348 KB
testcase_08 AC 7 ms
4,348 KB
testcase_09 AC 8 ms
4,348 KB
testcase_10 AC 8 ms
4,348 KB
testcase_11 AC 8 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 2 ms
4,348 KB
testcase_19 AC 2 ms
4,348 KB
testcase_20 AC 2 ms
4,348 KB
testcase_21 AC 2 ms
4,348 KB
testcase_22 AC 2 ms
4,348 KB
testcase_23 AC 2 ms
4,348 KB
testcase_24 AC 2 ms
4,348 KB
testcase_25 AC 2 ms
4,348 KB
testcase_26 AC 2 ms
4,348 KB
testcase_27 AC 2 ms
4,348 KB
testcase_28 AC 2 ms
4,348 KB
testcase_29 AC 2 ms
4,348 KB
testcase_30 AC 2 ms
4,348 KB
testcase_31 AC 2 ms
4,348 KB
testcase_32 AC 111 ms
6,600 KB
testcase_33 AC 80 ms
6,028 KB
testcase_34 AC 170 ms
7,712 KB
testcase_35 AC 142 ms
7,208 KB
testcase_36 AC 172 ms
8,040 KB
testcase_37 AC 98 ms
6,216 KB
testcase_38 AC 93 ms
6,360 KB
testcase_39 AC 182 ms
8,044 KB
testcase_40 AC 129 ms
6,908 KB
testcase_41 AC 173 ms
7,744 KB
testcase_42 AC 108 ms
6,632 KB
testcase_43 AC 119 ms
7,048 KB
testcase_44 AC 151 ms
7,780 KB
testcase_45 AC 112 ms
6,648 KB
testcase_46 AC 190 ms
8,304 KB
testcase_47 AC 48 ms
5,060 KB
testcase_48 AC 109 ms
6,844 KB
testcase_49 AC 197 ms
8,396 KB
testcase_50 AC 106 ms
6,276 KB
testcase_51 AC 92 ms
6,112 KB
testcase_52 AC 264 ms
10,776 KB
testcase_53 AC 251 ms
10,752 KB
testcase_54 AC 329 ms
14,588 KB
testcase_55 AC 329 ms
14,588 KB
testcase_56 AC 323 ms
14,588 KB
testcase_57 AC 327 ms
14,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#include <list>
#include <atcoder/all>
#define popcount __builtin_popcount
using namespace std;
using namespace atcoder;
typedef long long ll;
typedef pair<int, int> P;
using mint=modint998244353;

int main()
{
    int n, m;
    cin>>n>>m;
    map<string, int> mp;
    for(int i=0; i<n+m; i++){
        string s;int a;cin>>s>>a;
        mp[s]=a;
    }
    for(auto p:mp) cout<<p.first<<" "<<p.second<<endl;
    return 0;
}
0