Submission #10145379


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  map <string, int> mp;
  for (int i = 0; i < n; i++){
    string s;
    cin >> s;
    mp[s]++;
  }
  int mx = -1;
  for (auto now : mp){
    mx = max(mx, now.second);
  }
  for (auto now : mp){
    if (now.second == mx) cout << now.first << '\n';
  }
  return 0;
}

Submission Info

Submission Time
Task C - Poll
User Def4ULt
Language C++14 (GCC 5.4.1)
Score 300
Code Size 363 Byte
Status AC
Exec Time 455 ms
Memory 25216 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 300 / 300
Status
AC × 4
AC × 28
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt, sub1_14.txt, sub1_15.txt, sub1_16.txt, sub1_17.txt, sub1_18.txt, sub1_19.txt, sub1_20.txt, sub1_21.txt, sub1_22.txt, sub1_23.txt, sub1_24.txt
Case Name Status Exec Time Memory
sample_01.txt AC 1 ms 256 KB
sample_02.txt AC 1 ms 256 KB
sample_03.txt AC 1 ms 256 KB
sample_04.txt AC 1 ms 256 KB
sub1_01.txt AC 413 ms 22400 KB
sub1_02.txt AC 233 ms 13952 KB
sub1_03.txt AC 419 ms 25216 KB
sub1_04.txt AC 455 ms 25216 KB
sub1_05.txt AC 12 ms 1408 KB
sub1_06.txt AC 200 ms 14976 KB
sub1_07.txt AC 184 ms 13056 KB
sub1_08.txt AC 42 ms 256 KB
sub1_09.txt AC 8 ms 256 KB
sub1_10.txt AC 109 ms 256 KB
sub1_11.txt AC 103 ms 2560 KB
sub1_12.txt AC 28 ms 1536 KB
sub1_13.txt AC 368 ms 12160 KB
sub1_14.txt AC 283 ms 4096 KB
sub1_15.txt AC 82 ms 256 KB
sub1_16.txt AC 115 ms 256 KB
sub1_17.txt AC 124 ms 256 KB
sub1_18.txt AC 157 ms 256 KB
sub1_19.txt AC 36 ms 256 KB
sub1_20.txt AC 122 ms 256 KB
sub1_21.txt AC 161 ms 256 KB
sub1_22.txt AC 156 ms 256 KB
sub1_23.txt AC 289 ms 25216 KB
sub1_24.txt AC 292 ms 25216 KB