結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2021-12-24 00:01:02 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 347 ms / 2,000 ms |
| コード長 | 372 bytes |
| コンパイル時間 | 2,188 ms |
| コンパイル使用メモリ | 201,120 KB |
| 最終ジャッジ日時 | 2025-01-27 06:03:37 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N, M;
cin >> N >> M;
map<string, int> mp;
for (int i = 0; i < N; i++){
string S;
int A;
cin >> S >> A;
mp[S] = A;
}
for (int i = 0; i < M; i++){
string T;
int B;
cin >> T >> B;
mp[T] = B;
}
for (auto P : mp){
cout << P.first << ' ' << P.second << endl;
}
}
SSRS