Submission #2544812
Source Code Expand
<?php fscanf(STDIN, "%d", $n); $s = $p = $q = 0; while ($n--) { fscanf(STDIN, "%d %d %d", $t, $x, $y); $t1 = $t - $s; $d1 = abs($p - $x) + abs($q - $y); if ($d1 > $t1 || $d1 % 2 != $t1 % 2) { exit('No'); } $s = $t; $p = $x; $q = $y; } echo 'Yes';
Submission Info
Submission Time | |
---|---|
Task | C - Traveling |
User | harumeki |
Language | PHP7 (7.0.15) |
Score | 300 |
Code Size | 266 Byte |
Status | AC |
Exec Time | 77 ms |
Memory | 4604 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 | 9 ms | 4604 KB |
0_001.txt | AC | 9 ms | 4604 KB |
0_002.txt | AC | 9 ms | 4604 KB |
1_003.txt | AC | 9 ms | 4604 KB |
1_004.txt | AC | 77 ms | 4604 KB |
1_005.txt | AC | 9 ms | 4604 KB |
1_006.txt | AC | 71 ms | 4604 KB |
1_007.txt | AC | 18 ms | 4604 KB |
1_008.txt | AC | 9 ms | 4604 KB |
1_009.txt | AC | 9 ms | 4604 KB |
1_010.txt | AC | 9 ms | 4604 KB |
1_011.txt | AC | 9 ms | 4604 KB |
1_012.txt | AC | 9 ms | 4604 KB |