Submission #62998115
Source Code Expand
Copy
/*" وَكَانَ فَضْلُ اللَّهِ عَلَيْكَ عَظِيمًا "╔░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╗║ ║║ ██╗ ██╗ ██╗ ██╗ █████╗ ██╗ ███████╗ ██████╗ ██████╗ █████╗ ██████╗ ███████╗ ███████╗ ███████╗ ██████╗ ║║ ██║ ██╔╝ ██║ ██║ ██╔══██╗ ██║ ██╔════╝ ██╔══██╗ ██╔════╝ ██╔══██╗ ╚════██ ██╔════╝ ██╔════╝ ██╔════╝ ██╔══██╗ ║║ █████╔╝ ███████║ ███████║ ██║ █████╗ ██║ ██║ ╚█████╗ ███████║ ██████╝ █████╗ █████╗ █████╗ ██║ ██║ ║║ ██╔═██╗ ██╔══██║ ██╔══██║ ██║ ██╔══╝ ██║ ██║ ╚═══██╗ ██╔══██║ ╚════██╗ ██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ║║ ██║ ██╗ ██║ ██║ ██║ ██║ ███████╗ ███████╗ ██████╔╝ ██████╔╝ ██║ ██║ ██████╔╝ ███████╗ ███████╗ ███████╗ ██████╔╝ ║║ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══════╝ ╚═════╝ ███████╗ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚══════╝ ╚══════╝ ╚═════╝ ║║ ╚══════╝ ║╚░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ The king gets sick but doesn't retire, Wait! ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╝*/#include <bits/stdc++.h>using namespace std;#define endl '\n'#define ll long long#define int long long#define all(v) v.begin(), v.end()
/* " وَكَانَ فَضْلُ اللَّهِ عَلَيْكَ عَظِيمًا " ╔░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╗ ║ ║ ║ ██╗ ██╗ ██╗ ██╗ █████╗ ██╗ ███████╗ ██████╗ ██████╗ █████╗ ██████╗ ███████╗ ███████╗ ███████╗ ██████╗ ║ ║ ██║ ██╔╝ ██║ ██║ ██╔══██╗ ██║ ██╔════╝ ██╔══██╗ ██╔════╝ ██╔══██╗ ╚════██ ██╔════╝ ██╔════╝ ██╔════╝ ██╔══██╗ ║ ║ █████╔╝ ███████║ ███████║ ██║ █████╗ ██║ ██║ ╚█████╗ ███████║ ██████╝ █████╗ █████╗ █████╗ ██║ ██║ ║ ║ ██╔═██╗ ██╔══██║ ██╔══██║ ██║ ██╔══╝ ██║ ██║ ╚═══██╗ ██╔══██║ ╚════██╗ ██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ║ ║ ██║ ██╗ ██║ ██║ ██║ ██║ ███████╗ ███████╗ ██████╔╝ ██████╔╝ ██║ ██║ ██████╔╝ ███████╗ ███████╗ ███████╗ ██████╔╝ ║ ║ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚══════╝ ╚═════╝ ███████╗ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚══════╝ ╚══════╝ ╚═════╝ ║ ║ ╚══════╝ ║ ╚░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ The king gets sick but doesn't retire, Wait! ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╝ */ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define int long long #define all(v) v.begin(), v.end() #define MAX(v) *max_element(all(v)) #define MIN(v) *min_element(all(v)) #define rall(v) v.rbegin(), v.rend() #define K3D ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); void solve() { ll l; cin >> l; map<ll,string>mp; for (int i = 0; i < l; i++) { string s; cin >> s; mp[s.size()] = s; } for (auto& it : mp) { cout << it.second; } } int32_t main() { K3D; // ll TestCases;cin >> TestCases;while (TestCases--) { solve(); cout << endl; } return (0 * 0); }
Submission Info
Submission Time | |
---|---|
Task | B - cat |
User | khaled_sa3eeed |
Language | C++ 20 (gcc 12.2) |
Score | 200 |
Code Size | 3771 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3612 KiB |
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 | 3412 KiB |
sample01.txt | AC | 1 ms | 3460 KiB |
testcase00.txt | AC | 1 ms | 3612 KiB |
testcase01.txt | AC | 1 ms | 3496 KiB |
testcase02.txt | AC | 1 ms | 3332 KiB |
testcase03.txt | AC | 1 ms | 3484 KiB |
testcase04.txt | AC | 1 ms | 3488 KiB |
testcase05.txt | AC | 1 ms | 3612 KiB |
testcase06.txt | AC | 1 ms | 3540 KiB |
testcase07.txt | AC | 1 ms | 3396 KiB |
testcase08.txt | AC | 1 ms | 3436 KiB |
testcase09.txt | AC | 1 ms | 3460 KiB |
testcase10.txt | AC | 1 ms | 3432 KiB |
testcase11.txt | AC | 1 ms | 3440 KiB |
testcase12.txt | AC | 1 ms | 3496 KiB |