Submission #10373172


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 RespectKotlin
Language Kotlin (1.0.0)
Score 200
Code Size 442 Byte
Status AC
Exec Time 186 ms
Memory 31400 KB

Judge Result

Set Name Sample Subtask1 All
Score / Max Score 0 / 0 100 / 100 100 / 100
Status
AC × 3
AC × 7
AC × 11
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 182 ms 29476 KB
0_01.txt AC 181 ms 27296 KB
0_02.txt AC 181 ms 29340 KB
1_00.txt AC 182 ms 27556 KB
1_01.txt AC 181 ms 29344 KB
1_02.txt AC 183 ms 29340 KB
1_03.txt AC 184 ms 31400 KB
2_00.txt AC 186 ms 29352 KB
2_01.txt AC 183 ms 29352 KB
2_02.txt AC 183 ms 29344 KB
2_03.txt AC 181 ms 31256 KB