Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
---|---|---|---|---|---|---|
1252 | 2019-2020 ICPC, Asia Jakarta Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 159676199 | Oct. 27, 2019, 3:30 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3747 ) | C | Even Path | PROGRAMMING | data structures implementation | 1600 |
B'Pathfinding is a task of finding a route between two points. It often appears in many problems. For example, in a GPS navigation software where a driver can query for a suggested route, or in a robot motion planning where it should find a valid sequence of movements to do some tasks, or in a simple maze solver where it should find a valid path from one point to another point. This problem is related to solving a maze. The maze considered in this problem is in the form of a matrix of integers A of N x N . The value of each cell is generated from a given array R and C of N integers each. Specifically, the value on the i^{th} row and j^{th} column, cell (i,j) , is equal to R_i + C_j . Note that all indexes in this problem are from 1 to N . A path in this maze is defined as a sequence of cells (r_1,c_1), (r_2,c_2), ... , (r_k,c_k) such that |r_i - r_{i+1}| + |c_i - c_{i+1}| = 1 for all 1 <= i < k . In other words, each adjacent cell differs only by 1 row or only by 1 column. An even path in this maze is defined as a path in which all the cells in the path contain only even numbers. Given a tuple langle r_a,c_a,r_b,c_b rangle as a query, your task is to determine whether there exists an even path from cell (r_a,c_a) to cell (r_b,c_b) . To simplify the problem, it is guaranteed that both cell (r_a,c_a) and cell (r_b,c_b) contain even numbers. For example, let N = 5 , R = {6, 2, 7, 8, 3 } , and C = {3, 4, 8, 5, 1 } . The following figure depicts the matrix A of 5 x 5 which is generated from the given array R and C . Let us consider several queries: Input begins with a line containing two integers: N Q ( 2 <= N <= 100 ,000 ; 1 <= Q <= 100 ,000 ) representing the size of the maze and the number of queries, respectively. The next line contains N integers: R_i$$'... |
T |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
64202512 | _lys_Ce | C | Nov. 4, 2019, 11:53 a.m. | OK | Clang++17 Diagnostics | TESTS | 45 | 217 | 2867200 | 1600 | |
64854276 | gdoritos | C | Nov. 13, 2019, 9:27 p.m. | OK | Clang++17 Diagnostics | TESTS | 45 | 233 | 15974400 | 1600 | |
65663167 | jschr | C | Nov. 24, 2019, 1:13 p.m. | OK | GNU C11 | TESTS | 45 | 109 | 819200 | 1600 | |
64180326 | f2lk6wf90d | C | Nov. 3, 2019, 11:53 p.m. | OK | GNU C11 | TESTS | 45 | 124 | 2355200 | 1600 | |
64180299 | f2lk6wf90d | C | Nov. 3, 2019, 11:51 p.m. | OK | GNU C11 | TESTS | 45 | 124 | 2355200 | 1600 | |
64586148 | ioanD | C | Nov. 9, 2019, 1:23 p.m. | OK | GNU C11 | TESTS | 45 | 405 | 819200 | 1600 | |
63533969 | bowenshen YOK FortreSSS | C | Oct. 27, 2019, 7:31 a.m. | OK | GNU C11 | TESTS | 45 | 421 | 1638400 | 1600 | |
64850620 | hpl | C | Nov. 13, 2019, 7:26 p.m. | OK | GNU C11 | TESTS | 45 | 966 | 819200 | 1600 | |
63522565 | Leidaxxb cornivores | C | Oct. 27, 2019, 4:15 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 819200 | 1600 | |
63523633 | LJC00118 | C | Oct. 27, 2019, 4:35 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
63521561 | OYJason Kawaya Kloze | C | Oct. 27, 2019, 3:54 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
64121097 | vjudge1 | C | Nov. 3, 2019, 1:22 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
64121023 | vjudge3 | C | Nov. 3, 2019, 1:18 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
63962949 | scimoon | C | Nov. 1, 2019, 6:03 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
63524306 | vice_why112 | C | Oct. 27, 2019, 4:47 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
65535915 | Sonoda Timmy_DK_Q PETER_HH | C | Nov. 22, 2019, 2:09 p.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
65535889 | Sonoda Timmy_DK_Q PETER_HH | C | Nov. 22, 2019, 2:09 p.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1638400 | 1600 | |
63521610 | xdu_lhz Greenty_Q cdcq | C | Oct. 27, 2019, 3:55 a.m. | OK | GNU C++11 | TESTS | 45 | 46 | 1740800 | 1600 | |
63521569 | liouzhou_101 lavender730 | C | Oct. 27, 2019, 3:54 a.m. | OK | GNU C++14 | TESTS | 45 | 46 | 14131200 | 1600 | |
63527835 | ZYF1024 | C | Oct. 27, 2019, 5:49 a.m. | OK | GNU C++14 | TESTS | 45 | 108 | 2355200 | 1600 | |
64144935 | lamejeck Zoli9 | C | Nov. 3, 2019, 9:33 a.m. | OK | GNU C++14 | TESTS | 45 | 109 | 819200 | 1600 | |
65210006 | MasT_ | C | Nov. 16, 2019, 5:45 p.m. | OK | GNU C++14 | TESTS | 45 | 109 | 1228800 | 1600 | |
63932730 | _LeMur_ | C | Oct. 31, 2019, 2:46 p.m. | OK | GNU C++14 | TESTS | 45 | 124 | 819200 | 1600 | |
63608480 | nhphuongltv | C | Oct. 27, 2019, 4:09 p.m. | OK | GNU C++14 | TESTS | 45 | 124 | 819200 | 1600 | |
63522064 | nhho | C | Oct. 27, 2019, 4:04 a.m. | OK | GNU C++14 | TESTS | 45 | 124 | 819200 | 1600 | |
63898300 | lesf0 | C | Oct. 31, 2019, 3:39 a.m. | OK | GNU C++14 | TESTS | 45 | 124 | 819200 | 1600 | |
65134663 | vjudge1 | C | Nov. 16, 2019, 5:34 a.m. | OK | GNU C++14 | TESTS | 45 | 124 | 1638400 | 1600 | |
64519586 | SongHL FlyWhite binarycopycode | C | Nov. 8, 2019, 11:53 a.m. | OK | GNU C++14 | TESTS | 45 | 124 | 1638400 | 1600 | |
65511024 | interestingLSY | C | Nov. 22, 2019, 3:45 a.m. | OK | GNU C++17 | TESTS | 45 | 46 | 3174400 | 1600 | |
63626116 | LLLLL0420 | C | Oct. 28, 2019, 3:50 a.m. | OK | GNU C++17 | TESTS | 45 | 93 | 1638400 | 1600 | |
63626581 | UglyFrog | C | Oct. 28, 2019, 4:09 a.m. | OK | GNU C++17 | TESTS | 45 | 108 | 1536000 | 1600 | |
63929421 | MengWH | C | Oct. 31, 2019, 1:53 p.m. | OK | GNU C++17 | TESTS | 45 | 108 | 1638400 | 1600 | |
64471569 | liyunfan1223 | C | Nov. 7, 2019, 1:13 p.m. | OK | GNU C++17 | TESTS | 45 | 109 | 1638400 | 1600 | |
64074062 | CQXYM | C | Nov. 2, 2019, 8:19 a.m. | OK | GNU C++17 | TESTS | 45 | 109 | 2355200 | 1600 | |
64074187 | CQXYM | C | Nov. 2, 2019, 8:21 a.m. | OK | GNU C++17 | TESTS | 45 | 109 | 2355200 | 1600 | |
63523069 | Infused | C | Oct. 27, 2019, 4:24 a.m. | OK | GNU C++17 | TESTS | 45 | 124 | 819200 | 1600 | |
63523224 | Rea1 201806060718 tudouuuuu | C | Oct. 27, 2019, 4:28 a.m. | OK | GNU C++17 | TESTS | 45 | 124 | 1638400 | 1600 | |
63528469 | 1O1 | C | Oct. 27, 2019, 6 a.m. | OK | GNU C++17 | TESTS | 45 | 124 | 1638400 | 1600 | |
64785514 | z20124528 | C | Nov. 13, 2019, 8:59 a.m. | OK | Go | TESTS | 45 | 748 | 4505600 | 1600 | |
63712021 | Musin | C | Oct. 29, 2019, 10:22 a.m. | OK | Java 11 | TESTS | 45 | 233 | 0 | 1600 | |
63532335 | serafimkoo | C | Oct. 27, 2019, 7:05 a.m. | OK | Java 11 | TESTS | 45 | 296 | 0 | 1600 | |
65559586 | 1234567891 | C | Nov. 23, 2019, 1:56 a.m. | OK | Java 11 | TESTS | 45 | 327 | 0 | 1600 | |
63631846 | DLU_Sirius | C | Oct. 28, 2019, 6:42 a.m. | OK | Java 11 | TESTS | 45 | 811 | 0 | 1600 | |
68059617 | zhanyi_xiaolu | C | Jan. 2, 2020, 2:10 a.m. | OK | Java 11 | TESTS | 45 | 998 | 0 | 1600 | |
63525160 | KhanhNguyeneiu bomlalung NguyenHungCuong | C | Oct. 27, 2019, 5:02 a.m. | OK | Java 8 | TESTS | 45 | 171 | 69939200 | 1600 | |
64496030 | eztso | C | Nov. 7, 2019, 11:54 p.m. | OK | Java 8 | TESTS | 45 | 202 | 3174400 | 1600 | |
63851926 | ZeyadKhattab | C | Oct. 30, 2019, 4:02 p.m. | OK | Java 8 | TESTS | 45 | 218 | 0 | 1600 | |
63522069 | ijxjdjd | C | Oct. 27, 2019, 4:04 a.m. | OK | Java 8 | TESTS | 45 | 233 | 3481600 | 1600 | |
63933441 | di_halt | C | Oct. 31, 2019, 2:58 p.m. | OK | Java 8 | TESTS | 45 | 234 | 0 | 1600 | |
63522895 | parthsingh287 | C | Oct. 27, 2019, 4:21 a.m. | OK | Java 8 | TESTS | 45 | 234 | 1331200 | 1600 | |
63527858 | niti_n_n_itin Dsxv prem_cse | C | Oct. 27, 2019, 5:49 a.m. | OK | Java 8 | TESTS | 45 | 234 | 2150400 | 1600 | |
64555833 | Blastman | C | Nov. 9, 2019, 3:37 a.m. | OK | Java 8 | TESTS | 45 | 249 | 0 | 1600 | |
64183010 | O_o_Garett | C | Nov. 4, 2019, 2:38 a.m. | OK | Java 8 | TESTS | 45 | 249 | 716800 | 1600 | |
63670156 | Taran_1407 | C | Oct. 28, 2019, 4:37 p.m. | OK | Java 8 | TESTS | 45 | 249 | 1740800 | 1600 | |
63624905 | Spheniscine | C | Oct. 28, 2019, 2:53 a.m. | OK | Kotlin | TESTS | 45 | 280 | 5017600 | 1600 | |
64769554 | tomomo2b2 | C | Nov. 12, 2019, 10:05 p.m. | OK | Mono C# | TESTS | 45 | 280 | 33177600 | 1600 | |
63536674 | heavenhunter | C | Oct. 27, 2019, 8:17 a.m. | OK | Mono C# | TESTS | 45 | 421 | 13824000 | 1600 | |
65450716 | Tan42 | C | Nov. 20, 2019, 5:58 p.m. | OK | Mono C# | TESTS | 45 | 545 | 26828800 | 1600 | |
66039402 | vjudge3 | C | Nov. 30, 2019, 12:58 p.m. | OK | MS C++ | TESTS | 45 | 93 | 1638400 | 1600 | |
64162382 | vjudge5 | C | Nov. 3, 2019, 3 p.m. | OK | MS C++ | TESTS | 45 | 93 | 1638400 | 1600 | |
64531863 | vjudge5 | C | Nov. 8, 2019, 3:41 p.m. | OK | MS C++ | TESTS | 45 | 93 | 3174400 | 1600 | |
64532561 | vjudge2 | C | Nov. 8, 2019, 3:54 p.m. | OK | MS C++ | TESTS | 45 | 108 | 3174400 | 1600 | |
63563580 | hnust_xieyuanfeng | C | Oct. 27, 2019, 3:07 p.m. | OK | MS C++ | TESTS | 45 | 109 | 1638400 | 1600 | |
65944230 | vjudge5 | C | Nov. 29, 2019, 7:53 a.m. | OK | MS C++ | TESTS | 45 | 109 | 1638400 | 1600 | |
65705676 | vjudge1 | C | Nov. 25, 2019, 12:29 p.m. | OK | MS C++ | TESTS | 45 | 109 | 3174400 | 1600 | |
64552804 | vjudge4 | C | Nov. 9, 2019, 1:15 a.m. | OK | MS C++ | TESTS | 45 | 312 | 1638400 | 1600 | |
64552639 | vjudge3 | C | Nov. 9, 2019, 1:06 a.m. | OK | MS C++ | TESTS | 45 | 499 | 1638400 | 1600 | |
64067349 | vjudge1 | C | Nov. 2, 2019, 6:15 a.m. | OK | MS C++ | TESTS | 45 | 623 | 2457600 | 1600 | |
65717156 | vjudge3 | C | Nov. 25, 2019, 5:08 p.m. | OK | MS C++ 2017 | TESTS | 45 | 171 | 1638400 | 1600 | |
65793077 | vjudge5 | C | Nov. 27, 2019, 1:10 a.m. | OK | MS C++ 2017 | TESTS | 45 | 171 | 1638400 | 1600 | |
68446442 | scorpiowf | C | Jan. 9, 2020, 12:51 p.m. | OK | MS C++ 2017 | TESTS | 45 | 171 | 3174400 | 1600 | |
65510948 | pichulia | C | Nov. 22, 2019, 3:41 a.m. | OK | MS C++ 2017 | TESTS | 45 | 186 | 819200 | 1600 | |
63611265 | Vecando | C | Oct. 27, 2019, 5:20 p.m. | OK | MS C++ 2017 | TESTS | 45 | 186 | 3276800 | 1600 | |
63612009 | Vecando | C | Oct. 27, 2019, 5:42 p.m. | OK | MS C++ 2017 | TESTS | 45 | 187 | 819200 | 1600 | |
63617011 | Vecando | C | Oct. 27, 2019, 8:04 p.m. | OK | MS C++ 2017 | TESTS | 45 | 187 | 819200 | 1600 | |
63787555 | F91WoDaGe | C | Oct. 30, 2019, 12:44 p.m. | OK | MS C++ 2017 | TESTS | 45 | 187 | 1843200 | 1600 | |
63930035 | manofreality | C | Oct. 31, 2019, 2:02 p.m. | OK | MS C++ 2017 | TESTS | 45 | 468 | 16486400 | 1600 | |
63694061 | sladkayaKlubnichka | C | Oct. 29, 2019, 4:33 a.m. | OK | MS C++ 2017 | TESTS | 45 | 483 | 2150400 | 1600 | |
64747047 | Leendertz | C | Nov. 12, 2019, 1:54 p.m. | OK | PyPy 3 | TESTS | 45 | 374 | 19251200 | 1600 | |
65319315 | shelam | C | Nov. 18, 2019, 6:54 p.m. | OK | PyPy 3 | TESTS | 45 | 670 | 14950400 | 1600 | |
64511576 | rassvetik | C | Nov. 8, 2019, 9 a.m. | OK | PyPy 3 | TESTS | 45 | 670 | 19353600 | 1600 | |
64485953 | O_Ramanujan | C | Nov. 7, 2019, 5:47 p.m. | OK | PyPy 3 | TESTS | 45 | 701 | 13516800 | 1600 | |
63522697 | Aggu_01000101 kshitij_sodani noobcoder92 | C | Oct. 27, 2019, 4:17 a.m. | OK | PyPy 3 | TESTS | 45 | 717 | 14540800 | 1600 | |
63522213 | nikeshthapa255 satyamcse manish_joshi | C | Oct. 27, 2019, 4:07 a.m. | OK | PyPy 3 | TESTS | 45 | 935 | 156979200 | 1600 | |
63526383 | QuantumKnight | C | Oct. 27, 2019, 5:22 a.m. | OK | Python 3 | TESTS | 45 | 717 | 11468800 | 1600 | |
64511612 | rassvetik | C | Nov. 8, 2019, 9:01 a.m. | OK | Python 3 | TESTS | 45 | 889 | 17203200 | 1600 | |
63723434 | noneTP | C | Oct. 29, 2019, 12:01 p.m. | OK | Ruby | TESTS | 45 | 795 | 31539200 | 1600 | |
64871494 | maxglushkov561 | C | Nov. 14, 2019, 8:19 a.m. | OK | Rust | TESTS | 45 | 982 | 3174400 | 1600 |
Back to search problems