Submission #815930


Source Code Expand

Copy
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>

using namespace std;

int main()
{
  int N, L;
  cin >> N >> L;

  vector<string> s(N);

  for(int i = 0; i < N; i++) {
    cin >> s[i];
  }

  sort(s.begin(), s.end());

  string ans = "";
  for(int i = 0; i < N; i++) {
    ans += s[i];
  }
  cout << ans << endl;

  return 0;
}

Submission Info

Submission Time
Task B - Iroha Loves Strings (ABC Edition)
User gamera416
Language C++14 (GCC 5.4.1)
Score 200
Code Size 386 Byte
Status AC
Exec Time 6 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 1
AC × 10
Set Name Test Cases
Sample subtask0_sample_01.txt
All subtask0_sample_01.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 6 ms 256 KB
subtask1_01.txt AC 4 ms 256 KB
subtask1_02.txt AC 4 ms 256 KB
subtask1_03.txt AC 4 ms 256 KB
subtask1_04.txt AC 4 ms 256 KB
subtask1_05.txt AC 4 ms 256 KB
subtask1_06.txt AC 4 ms 256 KB
subtask1_07.txt AC 6 ms 256 KB
subtask1_08.txt AC 4 ms 256 KB
subtask1_09.txt AC 4 ms 256 KB