Codeforces Global Round 7

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
1326 Codeforces Global Round 7 FINISHED False 9000 152724311 March 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30800 ) A Bad Ugly Numbers PROGRAMMING constructive algorithms number theory 1000

B'You are given a integer n ( n > 0 ). Find any integer s which satisfies these conditions, or report that there are no such numbers: In the decimal representation of s : The input consists of multiple test cases. The first line of the input contains a single integer t ( 1 <= q t <= q 400 ), the number of test cases. The next t lines each describe a test case. Each test case contains one positive integer n ( 1 <= q n <= q 10^5 ). It is guaranteed that the sum of n for all test cases does not exceed 10^5 . For each test case, print an integer s which satisfies the conditions described above, or "-1" (without quotes), if no such number exists. If there are multiple possible solutions for s , print any solution. In the first test case, there are no possible solutions for s consisting of one digit, because any such solution is divisible by itself. For the second test case, the possible solutions are: 23 , 27 , 29 , 34 , 37 , 38 , 43 , 46 , 47 , 49 , 53 , 54 , 56 , 57 , 58 , 59 , 67 , 68 , 69 , 73 , 74 , 76 , 78 , 79 , 83 , 86 , 87 , 89 , 94 , 97 , and 98 . For the third test case, one possible solution is 239 because 239 is not divisible by 2 , 3 or 9 and has three digits (none of which equals zero). '...

Tutorials

74961

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73777539 kirillbobyrev A March 20, 2020, 9:12 a.m. OK Clang++17 Diagnostics TESTS 36 280 0 1000
73709906 Lummy A March 19, 2020, 3:58 p.m. OK FPC TESTS 36 46 1126400 1000
73707209 denchik007orel57 A March 19, 2020, 3:51 p.m. OK FPC TESTS 36 312 0 1000
73762309 platonabramov A March 20, 2020, 5:36 a.m. OK FPC TESTS 36 312 0 1000
73741644 Stranger321 A March 19, 2020, 8:55 p.m. OK GNU C11 TESTS 36 31 102400 1000
73701789 Progrmer02 A March 19, 2020, 3:38 p.m. OK GNU C11 TESTS 36 46 204800 1000
73796560 aaryanjagetia A March 20, 2020, 1:27 p.m. OK GNU C11 TESTS 36 312 0 1000
73755498 chowdhuryshashwoto A March 20, 2020, 3:24 a.m. OK GNU C11 TESTS 36 312 0 1000
73755614 chowdhuryshashwoto A March 20, 2020, 3:27 a.m. OK GNU C11 TESTS 36 312 0 1000
73812329 Ruhani A March 20, 2020, 4:51 p.m. OK GNU C11 TESTS 36 327 0 1000
73769649 pandeyaman5570 A March 20, 2020, 7:22 a.m. OK GNU C11 TESTS 36 327 0 1000
73769212 AsishKM A March 20, 2020, 7:16 a.m. OK GNU C11 TESTS 36 327 0 1000
73772604 pranavkumar1423 A March 20, 2020, 8:04 a.m. OK GNU C11 TESTS 36 327 0 1000
73774728 ritheshvarma A March 20, 2020, 8:34 a.m. OK GNU C11 TESTS 36 327 0 1000
73751238 CQXYM A March 20, 2020, 1:14 a.m. OK GNU C++11 TESTS 36 30 0 1000
73742769 eriksuenderhauf A March 19, 2020, 9:14 p.m. OK GNU C++11 TESTS 36 30 307200 1000
73803347 wenzhuan A March 20, 2020, 2:50 p.m. OK GNU C++11 TESTS 36 31 0 1000
73795996 brondogk A March 20, 2020, 1:21 p.m. OK GNU C++11 TESTS 36 31 0 1000
73795246 vjudge5 A March 20, 2020, 1:13 p.m. OK GNU C++11 TESTS 36 31 0 1000
73792046 Islav03 A March 20, 2020, 12:33 p.m. OK GNU C++11 TESTS 36 31 0 1000
73790231 14727629331 A March 20, 2020, 12:11 p.m. OK GNU C++11 TESTS 36 31 0 1000
73820242 vucko A March 20, 2020, 6:06 p.m. OK GNU C++11 TESTS 36 31 0 1000
73816316 IloveVania A March 20, 2020, 5:32 p.m. OK GNU C++11 TESTS 36 31 0 1000
73813941 nogood A March 20, 2020, 5:09 p.m. OK GNU C++11 TESTS 36 31 0 1000
73762490 teamcaproxx A March 20, 2020, 5:40 a.m. OK GNU C++14 TESTS 36 15 0 1000
73792896 mus_sharma A March 20, 2020, 12:44 p.m. OK GNU C++14 TESTS 36 15 307200 1000
73766625 vaibhav8713 A March 20, 2020, 6:39 a.m. OK GNU C++14 TESTS 36 30 0 1000
73777489 anshu_00 A March 20, 2020, 9:11 a.m. OK GNU C++14 TESTS 36 30 0 1000
73794047 harry331 A March 20, 2020, 12:58 p.m. OK GNU C++14 TESTS 36 30 0 1000
73750815 harsh_agarwa1 A March 20, 2020, 12:58 a.m. OK GNU C++14 TESTS 36 30 0 1000
73728122 Hotshot.me A March 19, 2020, 4:49 p.m. OK GNU C++14 TESTS 36 30 0 1000
73802291 Akash_2019 A March 20, 2020, 2:35 p.m. OK GNU C++14 TESTS 36 30 0 1000
73755733 i_am_no_one A March 20, 2020, 3:29 a.m. OK GNU C++14 TESTS 36 30 0 1000
73784336 debasisgupta07 A March 20, 2020, 10:54 a.m. OK GNU C++14 TESTS 36 30 102400 1000
73795090 harsh8221 A March 20, 2020, 1:11 p.m. OK GNU C++17 TESTS 36 15 307200 1000
73758252 i_m_Shakil A March 20, 2020, 4:25 a.m. OK GNU C++17 TESTS 36 15 307200 1000
73752954 sippy_ A March 20, 2020, 2:13 a.m. OK GNU C++17 TESTS 36 15 307200 1000
73749073 CodingKnight A March 20, 2020, 12:02 a.m. OK GNU C++17 TESTS 36 15 409600 1000
73824932 Admiral_puri A March 20, 2020, 6:52 p.m. OK GNU C++17 TESTS 36 30 0 1000
73777904 harshit2309 A March 20, 2020, 9:18 a.m. OK GNU C++17 TESTS 36 30 0 1000
73779336 at3107 A March 20, 2020, 9:39 a.m. OK GNU C++17 TESTS 36 30 0 1000
73803039 vjudge4 A March 20, 2020, 2:44 p.m. OK GNU C++17 TESTS 36 30 0 1000
73771002 arjunbangari A March 20, 2020, 7:41 a.m. OK GNU C++17 TESTS 36 30 0 1000
73777247 W_u_R A March 20, 2020, 9:07 a.m. OK GNU C++17 TESTS 36 30 0 1000
73822241 __0x296__ A March 20, 2020, 6:24 p.m. OK GNU C++17 (64) TESTS 36 31 0 1000
73833735 legion_geek A March 20, 2020, 8:49 p.m. OK GNU C++17 (64) TESTS 36 31 0 1000
73822020 ky4eronline A March 20, 2020, 6:22 p.m. OK GNU C++17 (64) TESTS 36 31 102400 1000
73825323 neal A March 20, 2020, 6:57 p.m. OK GNU C++17 (64) TESTS 36 31 204800 1000
73754144 synapse A March 20, 2020, 2:48 a.m. OK Go TESTS 36 31 102400 1000
73728831 cs_office A March 19, 2020, 4:51 p.m. OK Go TESTS 36 31 102400 1000
73767253 keshu6598 A March 20, 2020, 6:47 a.m. OK Go TESTS 36 997 5427200 1000
73713604 anastos A March 19, 2020, 4:07 p.m. OK Haskell TESTS 36 46 102400 1000
73780694 pseudosodium A March 20, 2020, 9:59 a.m. OK Java 11 TESTS 36 186 0 1000
73831174 rohan101 A March 20, 2020, 8:10 p.m. OK Java 11 TESTS 36 187 0 1000
73758287 its_aks_ulure A March 20, 2020, 4:26 a.m. OK Java 11 TESTS 36 187 0 1000
73753276 WaheguruAnurag A March 20, 2020, 2:22 a.m. OK Java 11 TESTS 36 187 0 1000
73741077 anhpp A March 19, 2020, 8:45 p.m. OK Java 11 TESTS 36 187 0 1000
73705162 code_in_dream A March 19, 2020, 3:46 p.m. OK Java 11 TESTS 36 187 0 1000
73743472 cribabby A March 19, 2020, 9:25 p.m. OK Java 11 TESTS 36 202 7065600 1000
73798212 rajparekh2024 A March 20, 2020, 1:47 p.m. OK Java 11 TESTS 36 218 0 1000
73788412 AshrafEzz A March 20, 2020, 11:49 a.m. OK Java 11 TESTS 36 218 0 1000
73726736 vamsi_odyssey A March 19, 2020, 4:45 p.m. OK Java 11 TESTS 36 218 0 1000
73797255 manishjha221 A March 20, 2020, 1:35 p.m. OK Java 8 TESTS 36 109 0 1000
73760693 conquerorArpit A March 20, 2020, 5:11 a.m. OK Java 8 TESTS 36 109 0 1000
73742175 bhavyseth A March 19, 2020, 9:05 p.m. OK Java 8 TESTS 36 109 0 1000
73803772 Aman_23_Gupta A March 20, 2020, 2:54 p.m. OK Java 8 TESTS 36 124 0 1000
73829485 nopre A March 20, 2020, 7:47 p.m. OK Java 8 TESTS 36 124 0 1000
73825729 swishx A March 20, 2020, 7:01 p.m. OK Java 8 TESTS 36 124 0 1000
73820270 kocko A March 20, 2020, 6:07 p.m. OK Java 8 TESTS 36 124 0 1000
73814643 ANU_Knight A March 20, 2020, 5:15 p.m. OK Java 8 TESTS 36 124 0 1000
73802906 backo A March 20, 2020, 2:43 p.m. OK Java 8 TESTS 36 124 0 1000
73797509 nagabhushan A March 20, 2020, 1:38 p.m. OK Java 8 TESTS 36 124 0 1000
73779006 nuralamcse024 A March 20, 2020, 9:35 a.m. OK JavaScript TESTS 36 62 102400 1000
73826471 Gioto A March 20, 2020, 7:10 p.m. OK JavaScript TESTS 36 124 5734400 1000
73752259 Spheniscine A March 20, 2020, 1:48 a.m. OK Kotlin TESTS 36 124 0 1000
73774434 PugachAG A March 20, 2020, 8:29 a.m. OK Kotlin TESTS 36 140 0 1000
73705458 vggvieira A March 19, 2020, 3:47 p.m. OK Kotlin TESTS 36 170 0 1000
73708702 abdukodir A March 19, 2020, 3:55 p.m. OK Kotlin TESTS 36 171 0 1000
73750621 david_varela A March 20, 2020, 12:51 a.m. OK Kotlin TESTS 36 171 819200 1000
73733982 de_loo A March 19, 2020, 5:04 p.m. OK Mono C# TESTS 36 62 716800 1000
73707804 Zedronar A March 19, 2020, 3:53 p.m. OK Mono C# TESTS 36 77 4915200 1000
73764218 TRR A March 20, 2020, 6:05 a.m. OK Mono C# TESTS 36 358 1536000 1000
73773803 vjudge5 A March 20, 2020, 8:22 a.m. OK MS C++ TESTS 36 31 0 1000
73701868 theweird A March 19, 2020, 3:39 p.m. OK MS C++ TESTS 36 31 0 1000
73796692 vjudge5 A March 20, 2020, 1:29 p.m. OK MS C++ TESTS 36 46 0 1000
73796531 vjudge2 A March 20, 2020, 1:27 p.m. OK MS C++ TESTS 36 46 0 1000
73705038 tranthanhtra A March 19, 2020, 3:46 p.m. OK MS C++ TESTS 36 46 0 1000
73728451 seh631638554 A March 19, 2020, 4:50 p.m. OK MS C++ TESTS 36 46 102400 1000
73744293 TMHazem A March 19, 2020, 9:40 p.m. OK MS C++ TESTS 36 46 819200 1000
73761705 galileo_3 A March 20, 2020, 5:27 a.m. OK MS C++ TESTS 36 62 0 1000
73730007 satish0701 A March 19, 2020, 4:55 p.m. OK MS C++ TESTS 36 78 0 1000
73790826 Boryan07 A March 20, 2020, 12:19 p.m. OK MS C++ 2017 TESTS 36 30 307200 1000
73708924 rawatkaran930 A March 19, 2020, 3:56 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
73773153 15756211003 A March 20, 2020, 8:13 a.m. OK MS C++ 2017 TESTS 36 31 0 1000
73715551 yikanji A March 19, 2020, 4:13 p.m. OK MS C++ 2017 TESTS 36 31 0 1000
73768205 mpoleg A March 20, 2020, 7:01 a.m. OK MS C++ 2017 TESTS 36 31 102400 1000
73750228 Sbiengo_sama A March 20, 2020, 12:40 a.m. OK MS C++ 2017 TESTS 36 31 307200 1000
73710423 HeTrack A March 19, 2020, 3:59 p.m. OK MS C++ 2017 TESTS 36 31 307200 1000
73765296 dmitrymack A March 20, 2020, 6:20 a.m. OK MS C++ 2017 TESTS 36 31 307200 1000
73766598 scorpion_27 A March 20, 2020, 6:38 a.m. OK MS C++ 2017 TESTS 36 31 307200 1000
73797393 Gravekper A March 20, 2020, 1:37 p.m. OK MS C++ 2017 TESTS 36 31 307200 1000
73779487 Harolinch A March 20, 2020, 9:42 a.m. OK Node.js TESTS 36 202 1843200 1000
73743048 mayakin A March 19, 2020, 9:18 p.m. OK PHP TESTS 36 46 0 1000
73704052 Bekzaat17 A March 19, 2020, 3:44 p.m. OK PHP TESTS 36 62 409600 1000
73747142 GTrigger A March 19, 2020, 10:53 p.m. OK PyPy 2 TESTS 36 140 307200 1000
73823758 Mytheee A March 20, 2020, 6:40 p.m. OK PyPy 2 TESTS 36 140 1945600 1000
73748921 the_sf A March 19, 2020, 11:57 p.m. OK PyPy 2 TESTS 36 186 307200 1000
73764980 bhavik07 A March 20, 2020, 6:16 a.m. OK PyPy 2 TESTS 36 202 307200 1000
73823111 myltik A March 20, 2020, 6:33 p.m. OK PyPy 2 TESTS 36 919 3481600 1000
73766741 koptev A March 20, 2020, 6:40 a.m. OK PyPy 3 TESTS 36 140 512000 1000
73827784 sanjay_dutt A March 20, 2020, 7:25 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73796969 r_daniellivingston A March 20, 2020, 1:32 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73790859 kaif_7 A March 20, 2020, 12:19 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73778351 Naman_Garg007 A March 20, 2020, 9:25 a.m. OK PyPy 3 TESTS 36 155 512000 1000
73758979 dqoder A March 20, 2020, 4:41 a.m. OK PyPy 3 TESTS 36 155 512000 1000
73744933 nenitb A March 19, 2020, 9:54 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73730621 DaddyCool__69 A March 19, 2020, 4:56 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73724419 grapheo12 A March 19, 2020, 4:38 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73707694 org562 A March 19, 2020, 3:53 p.m. OK PyPy 3 TESTS 36 155 512000 1000
73757759 _deep_m_ A March 20, 2020, 4:15 a.m. OK Python 2 TESTS 36 171 307200 1000
73827148 julianferres A March 20, 2020, 7:18 p.m. OK Python 2 TESTS 36 202 204800 1000
73788649 ashashwat A March 20, 2020, 11:52 a.m. OK Python 2 TESTS 36 202 204800 1000
73742784 eugalt A March 19, 2020, 9:14 p.m. OK Python 2 TESTS 36 202 1843200 1000
73730616 vtejak A March 19, 2020, 4:56 p.m. OK Python 2 TESTS 36 202 1843200 1000
73747121 GTrigger A March 19, 2020, 10:52 p.m. OK Python 2 TESTS 36 217 204800 1000
73706749 hackerbaba A March 19, 2020, 3:50 p.m. OK Python 2 TESTS 36 217 1740800 1000
73832032 roma.sizov.999 A March 20, 2020, 8:22 p.m. OK Python 2 TESTS 36 842 307200 1000
73817720 mooseq A March 20, 2020, 5:44 p.m. OK Python 2 TESTS 36 998 1843200 1000
73819339 fglh A March 20, 2020, 5:58 p.m. OK Python 3 TESTS 36 109 204800 1000
73782654 appmnit A March 20, 2020, 10:28 a.m. OK Python 3 TESTS 36 109 204800 1000
73765251 amitbhosale1234567890 A March 20, 2020, 6:19 a.m. OK Python 3 TESTS 36 109 204800 1000
73753185 martm A March 20, 2020, 2:19 a.m. OK Python 3 TESTS 36 109 204800 1000
73752133 pragati0416 A March 20, 2020, 1:45 a.m. OK Python 3 TESTS 36 109 204800 1000
73809657 FlyingBag65 A March 20, 2020, 4:12 p.m. OK Python 3 TESTS 36 109 307200 1000
73784547 Tanishq_Gupta A March 20, 2020, 10:57 a.m. OK Python 3 TESTS 36 109 307200 1000
73764917 amitbhosale1234567890 A March 20, 2020, 6:15 a.m. OK Python 3 TESTS 36 109 307200 1000
73764035 alpha.88 A March 20, 2020, 6:03 a.m. OK Python 3 TESTS 36 109 307200 1000
73763598 m80126colin A March 20, 2020, 5:57 a.m. OK Python 3 TESTS 36 109 307200 1000
73756043 Jezzuz A March 20, 2020, 3:37 a.m. OK Rust TESTS 36 46 0 1000

remove filters

Back to search problems