Submission #63019145
Source Code Expand
Copy
#include <bits/stdc++.h>#include <ext/pb_ds/assoc_container.hpp>#include <ext/pb_ds/tree_policy.hpp>#define FOR(i,a,b) for (int i = (a); i < (b); i++)using namespace std;using namespace __gnu_pbds;using ll=long long;using ld=long double;using vi=vector<int>;template<class T> using oset =tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update> ;//上bool cmp(string &a,string &b){return a.size()<b.size();}int main(){ios_base::sync_with_stdio(false);cin.tie(NULL);int n; cin >> n; vector<string> v(n);FOR(i,0,n) cin >> v[i];sort(v.begin(),v.end(),cmp);for(auto &u: v) cout << u;
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define FOR(i,a,b) for (int i = (a); i < (b); i++) using namespace std; using namespace __gnu_pbds; using ll=long long; using ld=long double; using vi=vector<int>; template<class T> using oset =tree<T, null_type, less<T>, rb_tree_tag,tree_order_statistics_node_update> ; //上 bool cmp(string &a,string &b){ return a.size()<b.size(); } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector<string> v(n); FOR(i,0,n) cin >> v[i]; sort(v.begin(),v.end(),cmp); for(auto &u: v) cout << u; cout<<'\n'; }
Submission Info
Submission Time | |
---|---|
Task | B - cat |
User | zawos |
Language | C++ 20 (gcc 12.2) |
Score | 200 |
Code Size | 685 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3568 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 | 3428 KB |
sample01.txt | AC | 1 ms | 3420 KB |
testcase00.txt | AC | 1 ms | 3520 KB |
testcase01.txt | AC | 1 ms | 3408 KB |
testcase02.txt | AC | 1 ms | 3516 KB |
testcase03.txt | AC | 1 ms | 3452 KB |
testcase04.txt | AC | 1 ms | 3452 KB |
testcase05.txt | AC | 1 ms | 3428 KB |
testcase06.txt | AC | 1 ms | 3376 KB |
testcase07.txt | AC | 1 ms | 3440 KB |
testcase08.txt | AC | 1 ms | 3508 KB |
testcase09.txt | AC | 1 ms | 3488 KB |
testcase10.txt | AC | 1 ms | 3568 KB |
testcase11.txt | AC | 1 ms | 3424 KB |
testcase12.txt | AC | 1 ms | 3440 KB |