Submission #53830885
Source Code Expand
Copy
fun main() {val (A, B) = readln().split(" ").map { it.toInt() }val AB = A + Bif (A == B) {println(-1)} else if (AB == 3) {println(3)} else if (AB == 4) {println(2)} else if (AB == 5) {println(1)}}
fun main() { val (A, B) = readln().split(" ").map { it.toInt() } val AB = A + B if (A == B) { println(-1) } else if (AB == 3) { println(3) } else if (AB == 4) { println(2) } else if (AB == 5) { println(1) } }
Submission Info
Submission Time | |
---|---|
Task | A - Who Ate the Cake? |
User | pent |
Language | Kotlin (Kotlin/JVM 1.8.20) |
Score | 100 |
Code Size | 282 Byte |
Status | AC |
Exec Time | 61 ms |
Memory | 39948 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 56 ms | 39760 KB |
00_sample_01.txt | AC | 59 ms | 39788 KB |
00_sample_02.txt | AC | 60 ms | 39664 KB |
01_random_00.txt | AC | 61 ms | 39848 KB |
01_random_01.txt | AC | 59 ms | 39668 KB |
01_random_02.txt | AC | 56 ms | 39676 KB |
01_random_03.txt | AC | 57 ms | 39608 KB |
01_random_04.txt | AC | 57 ms | 39772 KB |
01_random_05.txt | AC | 56 ms | 39736 KB |
01_random_06.txt | AC | 58 ms | 39848 KB |
01_random_07.txt | AC | 61 ms | 39948 KB |
01_random_08.txt | AC | 58 ms | 39852 KB |