Grakn Forces 2020

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
1408 Grakn Forces 2020 FINISHED False 9900 135789863 Sept. 30, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1080 ) G Clusterization Counting PROGRAMMING combinatorics dp ds fft graphs

B'There are n computers in the company network. They are numbered from 1 to n . For each pair of two computers 1 <= q i < j <= q n you know the value a_{i,j} : the difficulty of sending data between computers i and j . All values a_{i,j} for i<j are different. You want to separate all computers into k sets A_1, A_2, ldots, A_k , such that the following conditions are satisfied: For each 1 <= q k <= q n find the number of ways to divide computers into k groups, such that all required conditions are satisfied. These values can be large, so you need to find them by modulo 998 ,244 ,353 . The first line contains a single integer n ( 1 <= q n <= q 1500 ): the number of computers. The i -th of the next n lines contains n integers a_{i,1}, a_{i,2}, ldots, a_{i,n} ( 0 <= q a_{i,j} <= q frac{n (n-1)}{2} ). It is guaranteed that: Print n integers: the k -th of them should be equal to the number of possible ways to divide computers into k groups, such that all required conditions are satisfied, modulo 998 ,244 ,353 . Here are all possible ways to separate all computers into 4 groups in the second example: '...

Tutorials

Grakn Forces -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94350883 Martin53 G Sept. 30, 2020, 6:14 p.m. OK Clang++17 Diagnostics TESTS 24 1201 64512000
94350451 hos.lyric G Sept. 30, 2020, 6:09 p.m. OK D TESTS 24 452 54476800
94335965 Fuyuki G Sept. 30, 2020, 4:26 p.m. OK GNU C++11 TESTS 24 77 64409600
94343759 skyh G Sept. 30, 2020, 5:06 p.m. OK GNU C++11 TESTS 24 171 49459200
94367509 nantf G Oct. 1, 2020, 2:01 a.m. OK GNU C++11 TESTS 25 187 33996800
94337696 01191020csl G Sept. 30, 2020, 4:34 p.m. OK GNU C++11 TESTS 24 264 56012800
94366421 s_r_f G Oct. 1, 2020, 1:28 a.m. OK GNU C++11 TESTS 25 265 217292800
94365422 EmptySoulist G Oct. 1, 2020, 12:49 a.m. OK GNU C++11 TESTS 25 373 253849600
94339957 Misaka-Mikoto- G Sept. 30, 2020, 4:46 p.m. OK GNU C++11 TESTS 24 467 110387200
94372344 KillerX G Oct. 1, 2020, 4:08 a.m. OK GNU C++11 TESTS 25 483 56012800
94341433 Pigbrain G Sept. 30, 2020, 4:54 p.m. OK GNU C++11 TESTS 24 529 68812800
94341110 ynsm G Sept. 30, 2020, 4:52 p.m. OK GNU C++11 TESTS 24 577 205209600
94342091 MagicSpark G Sept. 30, 2020, 4:57 p.m. OK GNU C++14 TESTS 24 156 67481600
94351226 sh1194 G Sept. 30, 2020, 6:19 p.m. OK GNU C++14 TESTS 24 530 65126400
94351143 sh1194 G Sept. 30, 2020, 6:17 p.m. OK GNU C++14 TESTS 24 545 65126400
94345741 SongC G Sept. 30, 2020, 5:16 p.m. OK GNU C++14 TESTS 24 545 65126400
94337557 ugly2333 G Sept. 30, 2020, 4:34 p.m. OK GNU C++14 TESTS 24 546 19456000
94358193 dlalswp25 G Sept. 30, 2020, 8:18 p.m. OK GNU C++14 TESTS 25 561 28364800
94351319 sh1194 G Sept. 30, 2020, 6:20 p.m. OK GNU C++14 TESTS 24 561 65126400
94371723 Nero G Oct. 1, 2020, 3:52 a.m. OK GNU C++14 TESTS 25 607 47001600
94358096 clyring G Sept. 30, 2020, 8:16 p.m. OK GNU C++14 TESTS 25 608 44851200
94340756 stevenkplus G Sept. 30, 2020, 4:50 p.m. OK GNU C++14 TESTS 24 623 37888000
94368896 I_Love_Tourist_ G Oct. 1, 2020, 2:39 a.m. OK GNU C++17 TESTS 25 155 67481600
94353188 wnsh G Sept. 30, 2020, 6:46 p.m. OK GNU C++17 TESTS 24 186 56012800
94341826 LayCurse G Sept. 30, 2020, 4:56 p.m. OK GNU C++17 TESTS 24 218 149708800
94360194 CodigoL G Sept. 30, 2020, 9:08 p.m. OK GNU C++17 TESTS 25 514 38092800
94336703 antontrygubO_o G Sept. 30, 2020, 4:29 p.m. OK GNU C++17 TESTS 24 514 47616000
94336940 orz G Sept. 30, 2020, 4:31 p.m. OK GNU C++17 TESTS 24 530 48332800
94370892 heno239 G Oct. 1, 2020, 3:30 a.m. OK GNU C++17 TESTS 25 530 56012800
94362128 peti1234 G Sept. 30, 2020, 10:20 p.m. OK GNU C++17 TESTS 25 530 61337600
94362078 peti1234 G Sept. 30, 2020, 10:17 p.m. OK GNU C++17 TESTS 25 530 61337600
94343778 MAOoo G Sept. 30, 2020, 5:06 p.m. OK GNU C++17 TESTS 24 545 13619200
94358318 LiChenKoh G Sept. 30, 2020, 8:21 p.m. OK GNU C++17 (64) TESTS 25 108 33075200
94372744 RiverHamster G Oct. 1, 2020, 4:16 a.m. OK GNU C++17 (64) TESTS 25 156 18022400
94334644 yosupo G Sept. 30, 2020, 4:19 p.m. OK GNU C++17 (64) TESTS 24 186 37888000
94343828 memset0c G Sept. 30, 2020, 5:07 p.m. OK GNU C++17 (64) TESTS 24 202 87961600
94365848 Geothermal G Oct. 1, 2020, 1:07 a.m. OK GNU C++17 (64) TESTS 25 342 15974400
94358881 Ari G Sept. 30, 2020, 8:35 p.m. OK GNU C++17 (64) TESTS 25 342 27443200
94352398 neal G Sept. 30, 2020, 6:34 p.m. OK GNU C++17 (64) TESTS 24 343 18636800
94358496 kiyoshi0205 G Sept. 30, 2020, 8:25 p.m. OK GNU C++17 (64) TESTS 25 358 18329600
94338252 neal G Sept. 30, 2020, 4:37 p.m. OK GNU C++17 (64) TESTS 24 373 18636800
94357362 shubham__36 G Sept. 30, 2020, 8 p.m. OK GNU C++17 (64) TESTS 25 374 18124800
94341424 uwi G Sept. 30, 2020, 4:54 p.m. OK Java 11 TESTS 24 327 19148800
94342521 eatmore G Sept. 30, 2020, 5 p.m. OK Java 11 TESTS 24 545 6041600
94341752 Tlatoani G Sept. 30, 2020, 4:55 p.m. OK Kotlin TESTS 24 1575 109465600
94348130 sansen G Sept. 30, 2020, 5:47 p.m. OK Rust TESTS 24 139 35430400
94348220 ngtkana G Sept. 30, 2020, 5:48 p.m. OK Rust TESTS 24 794 51712000

remove filters

Back to search problems