Submission #2384453
Source Code Expand
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); char[] str = S.toCharArray(); int[] num = new int[26]; for(int i = 0;i < S.length();i++){ num[str[i] - 'a'] ++; } for(int i = 0;i < 26;i++){ if(num[i] > 0){ continue; } else{ System.out.println((char)('a' + i)); return; } } System.out.println("None"); } }
Submission Info
Submission Time | |
---|---|
Task | B - Not Found |
User | wdkkou |
Language | Java8 (OpenJDK 1.8.0) |
Score | 200 |
Code Size | 636 Byte |
Status | AC |
Exec Time | 150 ms |
Memory | 25836 KB |
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 | 90 ms | 19540 KB |
2.txt | AC | 91 ms | 18644 KB |
3.txt | AC | 112 ms | 22100 KB |
4.txt | AC | 139 ms | 25836 KB |
5.txt | AC | 143 ms | 23400 KB |
6.txt | AC | 150 ms | 23680 KB |
7.txt | AC | 148 ms | 24708 KB |
8.txt | AC | 141 ms | 25812 KB |
9.txt | AC | 141 ms | 22868 KB |
sample1.txt | AC | 90 ms | 17748 KB |
sample2.txt | AC | 89 ms | 19668 KB |
sample3.txt | AC | 88 ms | 18516 KB |