Submission #7993095
Source Code Expand
fun main(args: Array<String>) { val n = readLine()!!.toInt() var (bt, bx, by) = arrayOf(0, 0, 0) var result = "Yes" repeat(n) { val (t, x, y) = readLine()!!.split(" ").map { it.toInt() } val d = (t - bt) - (Math.abs(x - bx) + Math.abs(y - by)) if (d < 0 || d % 2 == 1) { result = "No" } } println(result) }
Submission Info
Submission Time | |
---|---|
Task | ABC086C - Traveling |
User | haru067 |
Language | Kotlin (1.0.0) |
Score | 300 |
Code Size | 367 Byte |
Status | AC |
Exec Time | 543 ms |
Memory | 51816 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt, 0_002.txt |
All | 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt, 1_012.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 235 ms | 37872 KB |
0_001.txt | AC | 234 ms | 37872 KB |
0_002.txt | AC | 234 ms | 35816 KB |
1_003.txt | AC | 233 ms | 35824 KB |
1_004.txt | AC | 534 ms | 49644 KB |
1_005.txt | AC | 543 ms | 51816 KB |
1_006.txt | AC | 524 ms | 49920 KB |
1_007.txt | AC | 502 ms | 39792 KB |
1_008.txt | AC | 242 ms | 33972 KB |
1_009.txt | AC | 494 ms | 38388 KB |
1_010.txt | AC | 243 ms | 35948 KB |
1_011.txt | AC | 491 ms | 38132 KB |
1_012.txt | AC | 242 ms | 34240 KB |