Submission #2859021
Source Code Expand
/** * @author karayuu */ fun main(args: Array<String>) { val s = readLine()!! var count = 0 for (i in 0..3) { if (s[i] == '+') { count++ } else if (s[i] == '-'){ count-- } } print(count) }
Submission Info
Submission Time | |
---|---|
Task | A - Eating Symbols Easy |
User | karayuu |
Language | Kotlin (1.0.0) |
Score | 100 |
Code Size | 286 Byte |
Status | AC |
Exec Time | 203 ms |
Memory | 29860 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
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, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 203 ms | 29788 KB |
2.txt | AC | 200 ms | 27768 KB |
3.txt | AC | 200 ms | 28004 KB |
4.txt | AC | 199 ms | 29664 KB |
5.txt | AC | 201 ms | 27732 KB |
sample1.txt | AC | 203 ms | 29636 KB |
sample2.txt | AC | 201 ms | 29860 KB |
sample3.txt | AC | 199 ms | 27828 KB |