結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2021-12-24 16:45:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 2,000 ms |
| コード長 | 570 bytes |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 71,076 KB |
| 実行使用メモリ | 14,336 KB |
| 最終ジャッジ日時 | 2024-09-20 03:24:26 |
| 合計ジャッジ時間 | 5,031 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 1795.cc: No.1795 AtCoder Heuristic Rating coloring - yukicoder
*/
#include<cstdio>
#include<string>
#include<map>
#include<algorithm>
using namespace std;
/* constant */
/* typedef */
typedef map<string,int> msi;
/* global variables */
msi nms;
/* subroutines */
/* main */
int main() {
int n, m;
scanf("%d%d", &n, &m);
for (int i = 0; i < n + m; i++) {
char s[32];
int a;
scanf("%s%d", s, &a);
nms[string(s)] = a;
}
for (auto na: nms) printf("%s %d\n", na.first.c_str(), na.second);
return 0;
}
tnakao0123