提出 #63003500


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
#define int long long
const int N = 4e5 + 10;
int n;
//int a[N];
string s;
bool cmp(string a,string b){
	return a.size() < b.size();
}
signed main(){
	int t;
	cin>>t;
	vector<string>v;
	while(t--){
		cin>>s;
		v.push_back(s);
	}
	sort(v.begin(),v.end(),cmp);
	for(auto  i : v){
		cout<<i;
	}
	return 0;
} 

提出情報

提出日時
問題 B - cat
ユーザ YANG666
言語 C++ 20 (gcc 12.2)
得点 200
コード長 373 Byte
結果 AC
実行時間 1 ms
メモリ 3664 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 15
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
sample00.txt AC 1 ms 3528 KiB
sample01.txt AC 1 ms 3652 KiB
testcase00.txt AC 1 ms 3532 KiB
testcase01.txt AC 1 ms 3500 KiB
testcase02.txt AC 1 ms 3452 KiB
testcase03.txt AC 1 ms 3508 KiB
testcase04.txt AC 1 ms 3540 KiB
testcase05.txt AC 1 ms 3376 KiB
testcase06.txt AC 1 ms 3536 KiB
testcase07.txt AC 1 ms 3664 KiB
testcase08.txt AC 1 ms 3580 KiB
testcase09.txt AC 1 ms 3468 KiB
testcase10.txt AC 1 ms 3540 KiB
testcase11.txt AC 1 ms 3376 KiB
testcase12.txt AC 1 ms 3536 KiB