結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー Yug_min_nullYug_min_null
提出日時 2021-12-24 19:50:48
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 341 ms / 2,000 ms
コード長 613 bytes
コンパイル時間 2,470 ms
コンパイル使用メモリ 201,984 KB
実行使用メモリ 14,548 KB
最終ジャッジ日時 2023-10-20 07:54:51
合計ジャッジ時間 9,971 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 7 ms
4,348 KB
testcase_05 AC 7 ms
4,348 KB
testcase_06 AC 7 ms
4,348 KB
testcase_07 AC 8 ms
4,348 KB
testcase_08 AC 8 ms
4,348 KB
testcase_09 AC 9 ms
4,348 KB
testcase_10 AC 9 ms
4,348 KB
testcase_11 AC 8 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 3 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 3 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 3 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 3 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 116 ms
6,560 KB
testcase_33 AC 83 ms
5,988 KB
testcase_34 AC 167 ms
7,672 KB
testcase_35 AC 146 ms
7,168 KB
testcase_36 AC 174 ms
8,000 KB
testcase_37 AC 95 ms
6,176 KB
testcase_38 AC 93 ms
6,320 KB
testcase_39 AC 185 ms
8,004 KB
testcase_40 AC 126 ms
6,868 KB
testcase_41 AC 169 ms
7,704 KB
testcase_42 AC 109 ms
6,592 KB
testcase_43 AC 122 ms
7,008 KB
testcase_44 AC 156 ms
7,740 KB
testcase_45 AC 113 ms
6,608 KB
testcase_46 AC 193 ms
8,264 KB
testcase_47 AC 50 ms
5,020 KB
testcase_48 AC 112 ms
6,804 KB
testcase_49 AC 200 ms
8,356 KB
testcase_50 AC 100 ms
6,236 KB
testcase_51 AC 94 ms
6,072 KB
testcase_52 AC 241 ms
10,736 KB
testcase_53 AC 252 ms
10,712 KB
testcase_54 AC 341 ms
14,548 KB
testcase_55 AC 334 ms
14,548 KB
testcase_56 AC 339 ms
14,548 KB
testcase_57 AC 339 ms
14,548 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
    7 | void print(auto a){
      |            ^~~~
main.cpp:11:13: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   11 | void prints(auto a){
      |             ^~~~
main.cpp:15:13: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   15 | void printL(auto a){
      |             ^~~~

ソースコード

diff #

#define _GLIBCXX_DEBUG
#define ll long long
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;

void print(auto a){
  cout << a;
}

void prints(auto a){
  cout << a << " ";
}

void printL(auto a){
  cout << a << endl;
}

void printL(){
  cout << endl;
}

void fix(int n){
  cout << fixed << setprecision(n);
}

int siz(string s){
  return (int)s.size();
}

int main() {
  int N, M; cin >> N >> M;
  map<string, int> mp;
  for(int i = 0; i < N+M; i++){
    string S; cin >> S;
    int A; cin >> A;
    mp[S] = A;
  }
  for(auto p: mp){
    prints(p.first);
    printL(p.second);
  }
}
0