Submission #1405827


Source Code Expand

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
	int n, k; cin >> n >> k;
	string s[101];
	for (int i = 0; i < n; i++)cin >> s[i];
	sort(s, s + n);
	for (int i = 0; i < n; i++)cout << s[n - i - 1]; cout << endl;
}

Submission Info

Submission Time
Task B - String Sorting
User th90tk297
Language C++14 (Clang 3.8.0)
Score 100
Code Size 265 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 43
Set Name Test Cases
All 00_sample_1, 00_sample_2, 10_max_06, 10_max_07, 10_max_08, 10_max_09, 10_max_10, 10_min_00, 10_min_01, 10_min_02, 10_min_03, 10_min_04, 10_min_05, 10_rand_11, 10_rand_12, 10_rand_13, 10_rand_14, 10_rand_15, 10_rand_16, 10_rand_17, 10_rand_18, 10_rand_19, 10_rand_20, 10_rand_21, 10_rand_22, 10_rand_23, 10_rand_24, 10_rand_25, 10_rand_26, 10_rand_27, 10_rand_28, 10_rand_29, 10_rand_30, 10_rand_31, 10_rand_32, 10_rand_33, 10_rand_34, 10_rand_35, 10_rand_36, 10_rand_37, 10_rand_38, 10_rand_39, 10_rand_40
Case Name Status Exec Time Memory
00_sample_1 AC 1 ms 256 KB
00_sample_2 AC 1 ms 256 KB
10_max_06 AC 1 ms 256 KB
10_max_07 AC 1 ms 256 KB
10_max_08 AC 1 ms 256 KB
10_max_09 AC 1 ms 256 KB
10_max_10 AC 1 ms 256 KB
10_min_00 AC 1 ms 256 KB
10_min_01 AC 1 ms 256 KB
10_min_02 AC 1 ms 256 KB
10_min_03 AC 1 ms 256 KB
10_min_04 AC 1 ms 256 KB
10_min_05 AC 1 ms 256 KB
10_rand_11 AC 1 ms 256 KB
10_rand_12 AC 1 ms 256 KB
10_rand_13 AC 1 ms 256 KB
10_rand_14 AC 1 ms 256 KB
10_rand_15 AC 1 ms 256 KB
10_rand_16 AC 1 ms 256 KB
10_rand_17 AC 1 ms 256 KB
10_rand_18 AC 1 ms 256 KB
10_rand_19 AC 1 ms 256 KB
10_rand_20 AC 1 ms 256 KB
10_rand_21 AC 1 ms 256 KB
10_rand_22 AC 1 ms 256 KB
10_rand_23 AC 1 ms 256 KB
10_rand_24 AC 1 ms 256 KB
10_rand_25 AC 1 ms 256 KB
10_rand_26 AC 1 ms 256 KB
10_rand_27 AC 1 ms 256 KB
10_rand_28 AC 1 ms 256 KB
10_rand_29 AC 1 ms 256 KB
10_rand_30 AC 1 ms 256 KB
10_rand_31 AC 1 ms 256 KB
10_rand_32 AC 1 ms 256 KB
10_rand_33 AC 1 ms 256 KB
10_rand_34 AC 1 ms 256 KB
10_rand_35 AC 1 ms 256 KB
10_rand_36 AC 1 ms 256 KB
10_rand_37 AC 1 ms 256 KB
10_rand_38 AC 1 ms 256 KB
10_rand_39 AC 1 ms 256 KB
10_rand_40 AC 1 ms 256 KB