結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー CleyLCleyL
提出日時 2022-01-09 00:25:01
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 340 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 76,808 KB
実行使用メモリ 14,592 KB
最終ジャッジ日時 2024-04-26 19:40:33
合計ジャッジ時間 9,427 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,944 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 7 ms
6,940 KB
testcase_05 AC 6 ms
6,940 KB
testcase_06 AC 8 ms
6,940 KB
testcase_07 AC 8 ms
6,940 KB
testcase_08 AC 8 ms
6,940 KB
testcase_09 AC 8 ms
6,940 KB
testcase_10 AC 8 ms
6,940 KB
testcase_11 AC 8 ms
6,940 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 AC 2 ms
6,940 KB
testcase_14 AC 2 ms
6,948 KB
testcase_15 AC 2 ms
6,944 KB
testcase_16 AC 2 ms
6,944 KB
testcase_17 AC 2 ms
6,940 KB
testcase_18 AC 2 ms
6,940 KB
testcase_19 AC 2 ms
6,940 KB
testcase_20 AC 2 ms
6,944 KB
testcase_21 AC 2 ms
6,944 KB
testcase_22 AC 2 ms
6,940 KB
testcase_23 AC 2 ms
6,940 KB
testcase_24 AC 2 ms
6,940 KB
testcase_25 AC 2 ms
6,944 KB
testcase_26 AC 2 ms
6,940 KB
testcase_27 AC 2 ms
6,940 KB
testcase_28 AC 2 ms
6,940 KB
testcase_29 AC 2 ms
6,944 KB
testcase_30 AC 2 ms
6,940 KB
testcase_31 AC 2 ms
6,944 KB
testcase_32 AC 116 ms
6,944 KB
testcase_33 AC 81 ms
6,940 KB
testcase_34 AC 169 ms
7,680 KB
testcase_35 AC 146 ms
7,168 KB
testcase_36 AC 171 ms
7,936 KB
testcase_37 AC 93 ms
6,944 KB
testcase_38 AC 91 ms
6,944 KB
testcase_39 AC 182 ms
7,808 KB
testcase_40 AC 126 ms
6,948 KB
testcase_41 AC 167 ms
7,680 KB
testcase_42 AC 109 ms
6,944 KB
testcase_43 AC 120 ms
7,040 KB
testcase_44 AC 157 ms
7,552 KB
testcase_45 AC 113 ms
6,940 KB
testcase_46 AC 188 ms
8,320 KB
testcase_47 AC 50 ms
6,940 KB
testcase_48 AC 113 ms
6,940 KB
testcase_49 AC 197 ms
8,192 KB
testcase_50 AC 104 ms
6,944 KB
testcase_51 AC 94 ms
6,940 KB
testcase_52 AC 250 ms
10,624 KB
testcase_53 AC 253 ms
10,624 KB
testcase_54 AC 333 ms
14,592 KB
testcase_55 AC 337 ms
14,464 KB
testcase_56 AC 332 ms
14,592 KB
testcase_57 AC 340 ms
14,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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