結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー tailstails
提出日時 2021-12-24 10:39:14
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 338 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 69,460 KB
実行使用メモリ 17,632 KB
最終ジャッジ日時 2023-10-20 07:53:20
合計ジャッジ時間 8,034 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 6 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 8 ms
4,348 KB
testcase_09 AC 8 ms
4,348 KB
testcase_10 AC 8 ms
4,348 KB
testcase_11 AC 7 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 1 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 1 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 114 ms
7,672 KB
testcase_33 AC 80 ms
6,876 KB
testcase_34 AC 167 ms
9,216 KB
testcase_35 AC 143 ms
8,512 KB
testcase_36 AC 165 ms
9,668 KB
testcase_37 AC 91 ms
7,136 KB
testcase_38 AC 90 ms
7,336 KB
testcase_39 AC 188 ms
9,672 KB
testcase_40 AC 125 ms
8,096 KB
testcase_41 AC 164 ms
9,260 KB
testcase_42 AC 131 ms
7,712 KB
testcase_43 AC 116 ms
8,292 KB
testcase_44 AC 150 ms
9,308 KB
testcase_45 AC 109 ms
7,732 KB
testcase_46 AC 193 ms
10,036 KB
testcase_47 AC 48 ms
5,528 KB
testcase_48 AC 110 ms
8,008 KB
testcase_49 AC 194 ms
10,164 KB
testcase_50 AC 106 ms
7,220 KB
testcase_51 AC 90 ms
6,988 KB
testcase_52 AC 251 ms
12,736 KB
testcase_53 AC 251 ms
12,700 KB
testcase_54 AC 334 ms
17,632 KB
testcase_55 AC 338 ms
17,632 KB
testcase_56 AC 335 ms
17,632 KB
testcase_57 AC 333 ms
17,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <map>
#include <string>
using namespace std;
int main(){
	map<string,string> h;
	long n,m;
	cin>>n>>m;
	for(long i=0;i<n+m;++i){
		string s,a;
		cin>>s>>a;
		h[s]=a;
	}
	for(auto t:h){
		cout<<t.first<<" "<<t.second<<endl;
	}
}
0