Submission #1777278
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<s.size();i++){ for(int j=0;j<s.size()-i-1;j++){ if(s[j]>s[j+1])swap(s[j],s[j+1]); } } char a='a'; for(int i=0;i<s.size();i++){ if(a!=s[i]||a=='{')break; if(a!=s[i+1])a++; } if(a=='{')cout<<"None"<<endl; else cout<<a<<endl; }
Submission Info
Submission Time | |
---|---|
Task | B - Not Found |
User | contest |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 372 Byte |
Status | TLE |
Exec Time | 2103 ms |
Memory | 512 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 1 ms | 256 KB |
2.txt | AC | 2 ms | 256 KB |
3.txt | AC | 138 ms | 384 KB |
4.txt | TLE | 2103 ms | 512 KB |
5.txt | TLE | 2103 ms | 512 KB |
6.txt | TLE | 2103 ms | 512 KB |
7.txt | TLE | 2103 ms | 384 KB |
8.txt | TLE | 2103 ms | 512 KB |
9.txt | TLE | 2103 ms | 512 KB |
sample1.txt | AC | 1 ms | 256 KB |
sample2.txt | AC | 1 ms | 256 KB |
sample3.txt | AC | 1 ms | 256 KB |