Submission #2856836
Source Code Expand
package main import "fmt" func main() { var s string fmt.Scanln(&s) fmt.Println(find(s)) } func find(s string) string { chars := make([]bool, 26) nFound := 0 for _, c := range s { if !chars[c-'a'] { nFound += 1 chars[c-'a'] = true } if nFound == 26 { break } } if nFound < 26 { for idx, found := range chars { if !found { return string('a' + idx) } } } return "None" }
Submission Info
Submission Time | |
---|---|
Task | B - Not Found |
User | ryym |
Language | Go (1.6) |
Score | 200 |
Code Size | 448 Byte |
Status | AC |
Exec Time | 55 ms |
Memory | 1280 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 | 1 ms | 512 KB |
2.txt | AC | 2 ms | 512 KB |
3.txt | AC | 7 ms | 640 KB |
4.txt | AC | 55 ms | 1280 KB |
5.txt | AC | 55 ms | 1280 KB |
6.txt | AC | 54 ms | 1280 KB |
7.txt | AC | 44 ms | 1152 KB |
8.txt | AC | 54 ms | 1280 KB |
9.txt | AC | 54 ms | 1280 KB |
sample1.txt | AC | 1 ms | 512 KB |
sample2.txt | AC | 1 ms | 512 KB |
sample3.txt | AC | 1 ms | 512 KB |