Submission #63007638
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;#define endl '\n'#define TRACE 1#define tcout TRACE && cout#define int long long#define fst ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);#define pri priority_queueconst int P = 998244353;const int INF = 0x3f3f3f3f3f3f3f3f;const int N = 1e5+10, M = 1e8 + 10;int n;
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define TRACE 1 #define tcout TRACE && cout #define int long long #define fst ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); #define pri priority_queue const int P = 998244353; const int INF = 0x3f3f3f3f3f3f3f3f; const int N = 1e5+10, M = 1e8 + 10; int n; string s[60]; bool f(string a,string b){ return a.size()<b.size(); } signed main() { fst cin>>n; for(int i=1;i<=n;i++){ cin>>s[i]; } sort(s+1,s+n+1,f); for(int i=1;i<=n;i++){ cout<<s[i]; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - cat |
User | ToT_and_QwQ |
Language | C++ 20 (gcc 12.2) |
Score | 200 |
Code Size | 592 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3536 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt |
All | sample00.txt, sample01.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3468 KB |
sample01.txt | AC | 1 ms | 3416 KB |
testcase00.txt | AC | 1 ms | 3400 KB |
testcase01.txt | AC | 1 ms | 3432 KB |
testcase02.txt | AC | 1 ms | 3480 KB |
testcase03.txt | AC | 1 ms | 3432 KB |
testcase04.txt | AC | 1 ms | 3468 KB |
testcase05.txt | AC | 1 ms | 3332 KB |
testcase06.txt | AC | 1 ms | 3428 KB |
testcase07.txt | AC | 1 ms | 3520 KB |
testcase08.txt | AC | 1 ms | 3536 KB |
testcase09.txt | AC | 1 ms | 3388 KB |
testcase10.txt | AC | 1 ms | 3480 KB |
testcase11.txt | AC | 1 ms | 3484 KB |
testcase12.txt | AC | 1 ms | 3480 KB |