Submission #4313711
Source Code Expand
#include<bits/stdc++.h> using namespace std; string s[51]; int n; int main() { scanf("%d",&n); for(int i=0;i<n;i++) cin>>s[i]; string smin=s[0]+s[1]; for(int i=0;i<n;i++) for(int j=0;j<n,j!=i;j++) if(smin>s[i]+s[j]) smin=s[i]+s[j]; cout<<smin; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - パスワード |
User | luogu_bot5 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 299 Byte |
Status | WA |
Exec Time | 2 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
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 | WA | 1 ms | 256 KB |
input_1.txt | WA | 1 ms | 256 KB |
input_10.txt | WA | 1 ms | 256 KB |
input_11.txt | WA | 1 ms | 256 KB |
input_12.txt | WA | 1 ms | 256 KB |
input_13.txt | WA | 1 ms | 256 KB |
input_14.txt | WA | 1 ms | 256 KB |
input_15.txt | WA | 1 ms | 256 KB |
input_16.txt | WA | 1 ms | 256 KB |
input_17.txt | WA | 1 ms | 256 KB |
input_18.txt | WA | 1 ms | 256 KB |
input_19.txt | WA | 2 ms | 256 KB |
input_2.txt | WA | 1 ms | 256 KB |
input_20.txt | WA | 1 ms | 256 KB |
input_21.txt | WA | 1 ms | 256 KB |
input_22.txt | WA | 1 ms | 256 KB |
input_23.txt | WA | 1 ms | 256 KB |
input_3.txt | WA | 1 ms | 256 KB |
input_4.txt | WA | 1 ms | 256 KB |
input_5.txt | WA | 1 ms | 256 KB |
input_6.txt | WA | 1 ms | 256 KB |
input_7.txt | WA | 1 ms | 256 KB |
input_8.txt | WA | 1 ms | 256 KB |
input_9.txt | WA | 1 ms | 256 KB |