Submission #1780805
Source Code Expand
#include <cstdio> #include <cmath> #include <cstring> #include <numeric> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <deque> #include <map> #include <utility> #include <string> using namespace std; typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair<int, int> pii; typedef pair<ll, int> pli; const int iinf = 1 << 29; const long long linf = 1ll << 61; #define modp(x, y) (((y) + (x) % (y)) % (y)) bool t[26]; char S[100010]; int main(int argc, char* argv[]) { scanf("%s", S); int L = strlen(S); for(int i = 0; i < L; i++) { t[S[i] - 'a'] = true; } for(int i = 0; i < 26; i++) { if(!t[i]) { printf("%c\n", i + 'a'); return 0; } } printf("None\n"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - Not Found |
User | neiteng |
Language | C++14 (GCC 5.4.1) |
Score | 200 |
Code Size | 821 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main(int, char**)’: ./Main.cpp:32:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", S); ^
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 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 | 128 KB |
2.txt | AC | 1 ms | 128 KB |
3.txt | AC | 1 ms | 128 KB |
4.txt | AC | 1 ms | 256 KB |
5.txt | AC | 1 ms | 256 KB |
6.txt | AC | 1 ms | 256 KB |
7.txt | AC | 1 ms | 256 KB |
8.txt | AC | 1 ms | 256 KB |
9.txt | AC | 1 ms | 256 KB |
sample1.txt | AC | 1 ms | 128 KB |
sample2.txt | AC | 1 ms | 128 KB |
sample3.txt | AC | 1 ms | 128 KB |