Submission #4266343
Source Code Expand
#include<bits/stdc++.h> using namespace std; string s[51]; bool cmp(string a,string b) { int i=0; while(i<a.size()&&i<b.size()) {if(a[i]<b[i])return true; if(a[i]>b[i])return false; i++; } if(a.size()<b.size())return true; if(a.size()>b.size())return false; } int main() { int n,i; cin>>n; for(i=1;i<=n;i++) cin>>s[i]; sort(s+1,s+n+1,cmp); cout<<s[1]<<s[2]<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - パスワード |
User | Flyinghorse |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 417 Byte |
Status | RE |
Exec Time | 105 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||||||
---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||||
Status |
|
Set Name | Test Cases |
---|---|
All | input_0.txt, input_1.txt, input_10.txt, input_11.txt, input_12.txt, input_13.txt, input_14.txt, input_15.txt, input_16.txt, input_17.txt, input_18.txt, input_19.txt, input_2.txt, input_20.txt, input_21.txt, input_22.txt, input_23.txt, input_3.txt, input_4.txt, input_5.txt, input_6.txt, input_7.txt, input_8.txt, input_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
input_0.txt | AC | 1 ms | 256 KB |
input_1.txt | AC | 1 ms | 256 KB |
input_10.txt | AC | 2 ms | 256 KB |
input_11.txt | AC | 1 ms | 256 KB |
input_12.txt | RE | 105 ms | 256 KB |
input_13.txt | AC | 1 ms | 256 KB |
input_14.txt | AC | 1 ms | 256 KB |
input_15.txt | AC | 1 ms | 256 KB |
input_16.txt | AC | 1 ms | 256 KB |
input_17.txt | AC | 2 ms | 256 KB |
input_18.txt | AC | 2 ms | 256 KB |
input_19.txt | AC | 2 ms | 256 KB |
input_2.txt | AC | 1 ms | 256 KB |
input_20.txt | AC | 1 ms | 256 KB |
input_21.txt | WA | 1 ms | 256 KB |
input_22.txt | AC | 1 ms | 256 KB |
input_23.txt | AC | 1 ms | 256 KB |
input_3.txt | AC | 1 ms | 256 KB |
input_4.txt | AC | 1 ms | 256 KB |
input_5.txt | AC | 1 ms | 256 KB |
input_6.txt | AC | 1 ms | 256 KB |
input_7.txt | AC | 1 ms | 256 KB |
input_8.txt | AC | 1 ms | 256 KB |
input_9.txt | WA | 1 ms | 256 KB |