Submission #10372967
Source Code Expand
import java.util.* fun main(args: Array<String>) { val sc = Scanner(System.`in`) val a = sc.nextInt() val b = sc.nextInt() if (b >= 0) { if (a > 0) { println("Positive") } else { println("Zero") } return } val diff = Math.abs(b - a) if (diff % 2 == 0) { println("Negative") } else { println("Positive") } }
Submission Info
Submission Time | |
---|---|
Task | A - Range Product |
User | itohjam |
Language | Kotlin (1.0.0) |
Score | 200 |
Code Size | 441 Byte |
Status | AC |
Exec Time | 172 ms |
Memory | 31264 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||
---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | 100 / 100 | ||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
Subtask1 | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 2_00.txt, 2_01.txt, 2_02.txt, 2_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 171 ms | 27292 KB |
0_01.txt | AC | 172 ms | 29344 KB |
0_02.txt | AC | 172 ms | 31264 KB |
1_00.txt | AC | 171 ms | 29340 KB |
1_01.txt | AC | 172 ms | 27552 KB |
1_02.txt | AC | 171 ms | 29224 KB |
1_03.txt | AC | 171 ms | 27428 KB |
2_00.txt | AC | 171 ms | 27420 KB |
2_01.txt | AC | 171 ms | 29336 KB |
2_02.txt | AC | 172 ms | 29216 KB |
2_03.txt | AC | 171 ms | 27300 KB |