結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-12-29 10:34:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 351 ms / 2,000 ms |
| コード長 | 355 bytes |
| コンパイル時間 | 2,080 ms |
| コンパイル使用メモリ | 201,436 KB |
| 最終ジャッジ日時 | 2025-01-27 07:26:42 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
signed main(){
map<string,int>mp;
int n,m;cin>>n>>m;
string s;
int temp;
rep(i,n){
cin>>s>>temp;
mp[s]=temp;
}
rep(i,m){
cin>>s>>temp;
mp[s]=temp;
}
for(auto e:mp){
cout<<e.first<<" "<<e.second<<endl;
}
return 0;
}
chacoder1