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 |
---|---|---|---|---|---|---|
1842 | CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) | FINISHED | False | 10800 | 49650863 | June 24, 2023, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4185 ) | D | Tenzing and His Animal Friends | PROGRAMMING | brute force constructive algorithms graphs greedy shortest paths |
B'Tenzing has n animal friends. He numbers them from 1 to n . One day Tenzing wants to play with his animal friends. To do so, Tenzing will host several games. In one game, he will choose a set S which is a subset of {1,2,3,...,n } and choose an integer t . Then, he will play the game with the animals in S for t minutes. But there are some restrictions: Tenzing wants to know the maximum total time that he can play with his animal friends. Please find out the maximum total time that Tenzing can play with his animal friends and a way to organize the games that achieves this maximum total time, or report that he can play with his animal friends for an infinite amount of time. Also, Tenzing does not want to host so many games, so he will host at most n^2 games. The first line of input contains two integers n and m ( 2 <= q n <= q 100 , 0 <= q m <= q frac{n(n-1)}{2} ) -- the number of animal friends and the number of special restrictions. The i -th of the following m lines of input contains three integers u_i , v_i and y_i ( 1 <= q u_i<v_i <= q n , 0 <= q y_i <= q 10^9 ) -- describing the i -th special restriction. It is guaranteed that for 1 <= q i < j <= q m , (u_i,v_i) neq (u_j,v_j) . If Tenzing can play with his animal friends for an infinite amount of time, output "inf". (Output without quotes.) Otherwise, in the first line, output the total time T ( 0 <= q t <= q 10^{18} ) and the number of games k ( 0 <= q k <= q n^2 ). In the following k lines of output, output a binary string s of length n and an integer t ( 0 <= q t <= q 10^{18} ) -- representing the set S and the number of minutes this game will be played. If s_i= texttt{1} , then i in S , otherwise if s_i= texttt{0} , then i notin S . Under the constraints of this problem, it can be proven that if '... |
CodeTON Round 5 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
210966484 | Alfafox | D | June 24, 2023, 8:10 p.m. | OK | C# 10 | TESTS | 93 | 77 | 3072000 | ||
210962911 | rainboy | D | June 24, 2023, 7:24 p.m. | OK | GNU C11 | TESTS | 93 | 31 | 102400 | ||
210987150 | Eznibuil | D | June 25, 2023, 4:04 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 102400 | ||
210981601 | kenuki | D | June 25, 2023, 1:47 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 102400 | ||
210987367 | CCCCOrz | D | June 25, 2023, 4:08 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 102400 | ||
210990420 | Hannible | D | June 25, 2023, 5:11 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 409600 | ||
210981775 | Tony2_CF | D | June 25, 2023, 1:51 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 409600 | ||
210957168 | animish01 | D | June 24, 2023, 6:22 p.m. | OK | GNU C++14 | TESTS | 93 | 15 | 512000 | ||
210947871 | zhouyuheng2009 | D | June 24, 2023, 4:55 p.m. | OK | GNU C++14 | TESTS | 93 | 15 | 512000 | ||
210958940 | pgergo03 | D | June 24, 2023, 6:39 p.m. | OK | GNU C++14 | TESTS | 93 | 15 | 512000 | ||
210958861 | pgergo03 | D | June 24, 2023, 6:38 p.m. | OK | GNU C++14 | TESTS | 93 | 15 | 512000 | ||
210988749 | Ayush_ag | D | June 25, 2023, 4:39 a.m. | OK | GNU C++14 | TESTS | 93 | 15 | 512000 | ||
210962480 | AliShahali1382 | D | June 24, 2023, 7:18 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 102400 | ||
210942867 | karelispanagiotis | D | June 24, 2023, 4:35 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 102400 | ||
210940764 | giao1 | D | June 24, 2023, 4:27 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 102400 | ||
210971813 | Whoisthisthough | D | June 24, 2023, 9:32 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 102400 | ||
210958085 | Jhuni | D | June 24, 2023, 6:30 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210948396 | harshith_04 | D | June 24, 2023, 4:57 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210945012 | TheAbysswalker | D | June 24, 2023, 4:44 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210941453 | lets.see | D | June 24, 2023, 4:29 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210941153 | fahimcp495 | D | June 24, 2023, 4:28 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210960093 | zrzring | D | June 24, 2023, 6:51 p.m. | OK | GNU C++17 | TESTS | 93 | 15 | 204800 | ||
210979618 | sunzh | D | June 25, 2023, 12:52 a.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210954727 | icecuber | D | June 24, 2023, 6:04 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210954603 | EnEm | D | June 24, 2023, 6:04 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210947099 | tabr | D | June 24, 2023, 4:52 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210944082 | K-H | D | June 24, 2023, 4:40 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210980791 | hgzxwzf | D | June 25, 2023, 1:24 a.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 102400 | ||
210980357 | zlxFTH | D | June 25, 2023, 1:12 a.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 204800 | ||
210964643 | YocyCraft | D | June 24, 2023, 7:44 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 204800 | ||
210945782 | HillSideDonkey | D | June 24, 2023, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 204800 | ||
210983757 | orz_liangjiawen | D | June 25, 2023, 2:43 a.m. | OK | GNU C++17 (64) | TESTS | 93 | 15 | 204800 | ||
210980605 | Zesty_Fox | D | June 25, 2023, 1:19 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210987849 | KbltQaQ | D | June 25, 2023, 4:18 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210986021 | 765 | D | June 25, 2023, 3:38 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210984335 | bestzzz | D | June 25, 2023, 2:57 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210983452 | Gavinprprpr | D | June 25, 2023, 2:35 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210983315 | Gavinprprpr | D | June 25, 2023, 2:32 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210982463 | juju527 | D | June 25, 2023, 2:10 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210982050 | DerekYeh | D | June 25, 2023, 1:59 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210980688 | sjc061031 | D | June 25, 2023, 1:21 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210980451 | Hail_the_Lord_Almighty | D | June 25, 2023, 1:15 a.m. | OK | GNU C++20 (64) | TESTS | 93 | 15 | 102400 | ||
210949939 | zyf123 | D | June 24, 2023, 5:03 p.m. | OK | Go | TESTS | 93 | 31 | 1126400 | ||
210964109 | csullivan203 | D | June 24, 2023, 7:38 p.m. | OK | Java 11 | TESTS | 93 | 218 | 0 | ||
210937010 | profchi | D | June 24, 2023, 4:14 p.m. | OK | Java 11 | TESTS | 93 | 233 | 0 | ||
210976457 | dualthread | D | June 24, 2023, 11:18 p.m. | OK | Java 11 | TESTS | 93 | 295 | 38912000 | ||
210942006 | djrfrn | D | June 24, 2023, 4:31 p.m. | OK | Java 11 | TESTS | 93 | 296 | 0 | ||
210976017 | -0.1 | D | June 24, 2023, 11:07 p.m. | OK | Java 11 | TESTS | 93 | 296 | 38912000 | ||
210941485 | lemon_codes | D | June 24, 2023, 4:29 p.m. | OK | Java 17 | TESTS | 93 | 280 | 819200 | ||
210941540 | kamranm | D | June 24, 2023, 4:30 p.m. | OK | Java 17 | TESTS | 93 | 280 | 104857600 | ||
210947192 | IceWolf898 | D | June 24, 2023, 4:53 p.m. | OK | Java 17 | TESTS | 93 | 295 | 1433600 | ||
210967455 | kamranm | D | June 24, 2023, 8:24 p.m. | OK | Java 17 | TESTS | 93 | 295 | 104857600 | ||
210963248 | Dukkha | D | June 24, 2023, 7:28 p.m. | OK | Java 17 | TESTS | 93 | 311 | 1228800 | ||
210949666 | Gaurav_Kadian | D | June 24, 2023, 5:02 p.m. | OK | Java 17 | TESTS | 93 | 358 | 1433600 | ||
210954730 | pashkinpeter | D | June 24, 2023, 6:04 p.m. | OK | Java 17 | TESTS | 93 | 374 | 1331200 | ||
210957110 | The_terminator | D | June 24, 2023, 6:22 p.m. | OK | Java 8 | TESTS | 93 | 124 | 0 | ||
210941712 | cc4414 | D | June 24, 2023, 4:30 p.m. | OK | Java 8 | TESTS | 93 | 124 | 0 | ||
210939494 | invincible777 | D | June 24, 2023, 4:22 p.m. | OK | Java 8 | TESTS | 93 | 124 | 0 | ||
210934356 | UniversalAdmin | D | June 24, 2023, 4:05 p.m. | OK | Java 8 | TESTS | 93 | 171 | 0 | ||
210938278 | Virendra115 | D | June 24, 2023, 4:18 p.m. | OK | Java 8 | TESTS | 93 | 202 | 0 | ||
210973846 | andy562.dlg | D | June 24, 2023, 10:14 p.m. | OK | MS C++ 2017 | TESTS | 93 | 295 | 1024000 | ||
210974044 | andy562.dlg | D | June 24, 2023, 10:18 p.m. | OK | MS C++ 2017 | TESTS | 93 | 296 | 614400 | ||
210957642 | bcollet | D | June 24, 2023, 6:26 p.m. | OK | PyPy 2 | TESTS | 93 | 140 | 1945600 | ||
210962519 | Lyle0711 | D | June 24, 2023, 7:19 p.m. | OK | PyPy 3 | TESTS | 93 | 140 | 4710400 | ||
210962107 | Lyle0711 | D | June 24, 2023, 7:13 p.m. | OK | PyPy 3 | TESTS | 93 | 140 | 5427200 | ||
210962275 | Lyle0711 | D | June 24, 2023, 7:16 p.m. | OK | PyPy 3 | TESTS | 93 | 155 | 4710400 | ||
210977167 | elu00 | D | June 24, 2023, 11:38 p.m. | OK | PyPy 3 | TESTS | 93 | 202 | 9216000 | ||
210958306 | SoleProprietor | D | June 24, 2023, 6:32 p.m. | OK | PyPy 3-64 | TESTS | 93 | 93 | 3379200 | ||
210945145 | Mukundan314 | D | June 24, 2023, 4:44 p.m. | OK | PyPy 3-64 | TESTS | 93 | 93 | 4812800 | ||
210965342 | siddharthraj | D | June 24, 2023, 7:53 p.m. | OK | PyPy 3-64 | TESTS | 93 | 93 | 5222400 | ||
210953740 | sushmanth.dampur8780 | D | June 24, 2023, 5:58 p.m. | OK | PyPy 3-64 | TESTS | 93 | 108 | 5017600 | ||
210961471 | alexwice | D | June 24, 2023, 7:06 p.m. | OK | PyPy 3-64 | TESTS | 93 | 109 | 5632000 | ||
210943360 | kefolen | D | June 24, 2023, 4:37 p.m. | OK | PyPy 3-64 | TESTS | 93 | 124 | 6348800 | ||
210955422 | unknownSolver | D | June 24, 2023, 6:09 p.m. | OK | PyPy 3-64 | TESTS | 93 | 124 | 7168000 | ||
210955388 | pythonist_viking | D | June 24, 2023, 6:09 p.m. | OK | PyPy 3-64 | TESTS | 93 | 124 | 8089600 | ||
210958945 | AyuAnchor | D | June 24, 2023, 6:39 p.m. | OK | PyPy 3-64 | TESTS | 93 | 139 | 6656000 | ||
210947923 | momoyao | D | June 24, 2023, 4:55 p.m. | OK | PyPy 3-64 | TESTS | 93 | 139 | 7475200 | ||
210947406 | shalinimeena465 | D | June 24, 2023, 4:53 p.m. | OK | Python 3 | TESTS | 93 | 61 | 1228800 | ||
210941883 | andrey.m | D | June 24, 2023, 4:31 p.m. | OK | Rust 2021 | TESTS | 93 | 30 | 819200 |
Back to search problems