Codeforces Round 617 (Div. 3)

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
1296 Codeforces Round 617 (Div. 3) FINISHED False 7200 150996299 Feb. 4, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 42342 ) A Array with Odd Sum PROGRAMMING math 800

B'You are given an array a consisting of n integers. In one move, you can choose two indices 1 <= i, j <= n such that i ne j and set a_i := a_j . You can perform such moves any number of times (possibly, zero). You can choose different indices in different operations. The operation := is the operation of assignment (i.e. you choose i and j and replace a_i with a_j ). Your task is to say if it is possible to obtain an array with an odd (not divisible by 2 ) sum of elements. You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 2000 ) -- the number of test cases. The next 2t lines describe test cases. The first line of the test case contains one integer n ( 1 <= n <= 2000 ) -- the number of elements in a . The second line of the test case contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 2000 ), where a_i is the i -th element of a . It is guaranteed that the sum of n over all test cases does not exceed 2000 ( sum n <= 2000 ). For each test case, print the answer on it -- "YES" (without quotes) if it is possible to obtain the array with an odd sum of elements, and "NO" otherwise. '...

Tutorials

Codeforces Round #617 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
70332253 TooLuckyToLose A Feb. 5, 2020, 6:17 a.m. OK Clang++17 Diagnostics TESTS 5 31 1843200 800
70472574 AOILunar A Feb. 7, 2020, 1:31 a.m. OK Clang++17 Diagnostics TESTS 5 46 0 800
70415914 Aks303sri A Feb. 6, 2020, 7:05 a.m. OK Clang++17 Diagnostics TESTS 5 46 0 800
70339090 rahul5720 A Feb. 5, 2020, 7:58 a.m. OK Clang++17 Diagnostics TESTS 5 46 0 800
70381748 ftiasch A Feb. 5, 2020, 5:16 p.m. OK D TESTS 5 31 4198400 800
70444273 Ivan775533 A Feb. 6, 2020, 2:46 p.m. OK Delphi TESTS 5 15 102400 800
70529017 carolxide A Feb. 7, 2020, 9:10 p.m. OK FPC TESTS 5 15 0 800
70510651 VanekGood A Feb. 7, 2020, 2:45 p.m. OK FPC TESTS 5 31 0 800
70421670 HQT2003 A Feb. 6, 2020, 8:56 a.m. OK FPC TESTS 5 31 102400 800
70553208 egorsa111 A Feb. 8, 2020, 9:36 a.m. OK FPC TESTS 5 31 204800 800
70998089 2019eeb1204 A Feb. 13, 2020, 4:04 p.m. OK GNU C11 TESTS 5 15 0 800
70697418 friedrich_hayek A Feb. 10, 2020, 12:06 a.m. OK GNU C11 TESTS 5 15 0 800
70733607 sushma55 A Feb. 10, 2020, 2:01 p.m. OK GNU C11 TESTS 5 15 0 800
70750128 hellobars19 A Feb. 10, 2020, 6:43 p.m. OK GNU C11 TESTS 5 15 0 800
70750218 vjudge1 A Feb. 10, 2020, 6:44 p.m. OK GNU C11 TESTS 5 15 0 800
70773118 wksinha A Feb. 11, 2020, 7:49 a.m. OK GNU C11 TESTS 5 15 0 800
70797562 vjudge2 A Feb. 11, 2020, 3:57 p.m. OK GNU C11 TESTS 5 15 0 800
70813018 ARSLANNN A Feb. 11, 2020, 9:19 p.m. OK GNU C11 TESTS 5 15 0 800
70820576 itian A Feb. 12, 2020, 3:32 a.m. OK GNU C11 TESTS 5 15 0 800
70831289 mainul3195 A Feb. 12, 2020, 8:31 a.m. OK GNU C11 TESTS 5 15 0 800
70908627 jesuswr A Feb. 12, 2020, 5:42 p.m. OK GNU C++11 TESTS 5 15 0 800
71072979 rajkumar62506 A Feb. 14, 2020, 4:28 p.m. OK GNU C++11 TESTS 5 15 0 800
71037923 Ust1n1us A Feb. 14, 2020, 6:03 a.m. OK GNU C++11 TESTS 5 15 0 800
71027649 kkry2333 A Feb. 14, 2020, 1:13 a.m. OK GNU C++11 TESTS 5 15 0 800
70960473 CCWUCMCTS A Feb. 13, 2020, 2:04 p.m. OK GNU C++11 TESTS 5 15 0 800
70953729 AhmedMostafaNobi A Feb. 13, 2020, 12:11 p.m. OK GNU C++11 TESTS 5 15 0 800
70945719 rrios7 A Feb. 13, 2020, 9:40 a.m. OK GNU C++11 TESTS 5 15 0 800
70935437 inysys11 A Feb. 13, 2020, 6:37 a.m. OK GNU C++11 TESTS 5 15 0 800
70925617 shenzhentong A Feb. 13, 2020, 2:19 a.m. OK GNU C++11 TESTS 5 15 0 800
70924032 luogu_bot5 A Feb. 13, 2020, 1:06 a.m. OK GNU C++11 TESTS 5 15 0 800
71096916 leonidk A Feb. 15, 2020, 5:18 a.m. OK GNU C++14 TESTS 5 15 0 800
71096836 subham2107 A Feb. 15, 2020, 5:15 a.m. OK GNU C++14 TESTS 5 15 0 800
71091945 rentu A Feb. 15, 2020, 2:21 a.m. OK GNU C++14 TESTS 5 15 0 800
71087869 confusedboy A Feb. 14, 2020, 10:34 p.m. OK GNU C++14 TESTS 5 15 0 800
71083295 advika A Feb. 14, 2020, 7:57 p.m. OK GNU C++14 TESTS 5 15 0 800
71081365 Siddd. A Feb. 14, 2020, 7:11 p.m. OK GNU C++14 TESTS 5 15 0 800
71080696 NaoSei A Feb. 14, 2020, 6:55 p.m. OK GNU C++14 TESTS 5 15 0 800
71077500 Shrouksalem A Feb. 14, 2020, 5:50 p.m. OK GNU C++14 TESTS 5 15 0 800
71077313 NeetyaP A Feb. 14, 2020, 5:46 p.m. OK GNU C++14 TESTS 5 15 0 800
71076658 lavina_jain A Feb. 14, 2020, 5:32 p.m. OK GNU C++14 TESTS 5 15 0 800
70958499 thuanqvbn03 A Feb. 13, 2020, 1:30 p.m. OK GNU C++17 TESTS 5 0 0 800
71076008 vjudge5 A Feb. 14, 2020, 5:20 p.m. OK GNU C++17 TESTS 5 15 0 800
71076555 jeff_seid A Feb. 14, 2020, 5:30 p.m. OK GNU C++17 TESTS 5 15 0 800
71079328 BKsher A Feb. 14, 2020, 6:27 p.m. OK GNU C++17 TESTS 5 15 0 800
71079799 smaug_11 A Feb. 14, 2020, 6:36 p.m. OK GNU C++17 TESTS 5 15 0 800
71082893 togrul200323 A Feb. 14, 2020, 7:47 p.m. OK GNU C++17 TESTS 5 15 0 800
71084195 mohamedmohsen88 A Feb. 14, 2020, 8:20 p.m. OK GNU C++17 TESTS 5 15 0 800
71087194 Shehab910 A Feb. 14, 2020, 10:03 p.m. OK GNU C++17 TESTS 5 15 0 800
71089814 Menna-Allah05 A Feb. 15, 2020, 12:20 a.m. OK GNU C++17 TESTS 5 15 0 800
71096161 b.moogii09 A Feb. 15, 2020, 4:59 a.m. OK GNU C++17 TESTS 5 15 0 800
70717407 fc-lib-xyz A Feb. 10, 2020, 8:59 a.m. OK Go TESTS 5 15 0 800
70372622 ale18 A Feb. 5, 2020, 3:36 p.m. OK Go TESTS 5 31 0 800
70371153 ale18 A Feb. 5, 2020, 3:17 p.m. OK Go TESTS 5 31 0 800
70766856 abc057lhx A Feb. 11, 2020, 5:14 a.m. OK Go TESTS 5 46 0 800
70620655 Icceey A Feb. 9, 2020, 11:26 a.m. OK Go TESTS 5 46 0 800
70511287 mminaev A Feb. 7, 2020, 2:55 p.m. OK Go TESTS 5 61 0 800
70535691 ShonStewart A Feb. 8, 2020, 2:56 a.m. OK Haskell TESTS 5 30 102400 800
70536177 ShonStewart A Feb. 8, 2020, 3:16 a.m. OK Haskell TESTS 5 31 102400 800
70332276 lightseba A Feb. 5, 2020, 6:18 a.m. OK Java 11 TESTS 5 155 0 800
70693820 1ncendiary A Feb. 9, 2020, 9:07 p.m. OK Java 11 TESTS 5 171 0 800
70457424 WaheguruAnurag A Feb. 6, 2020, 5:49 p.m. OK Java 11 TESTS 5 171 0 800
70414467 devesh08 A Feb. 6, 2020, 6:36 a.m. OK Java 11 TESTS 5 171 0 800
70317355 Anonymous A Feb. 4, 2020, 9:32 p.m. OK Java 11 TESTS 5 171 0 800
70306771 xl3ster A Feb. 4, 2020, 6:03 p.m. OK Java 11 TESTS 5 171 0 800
70304655 O-infinity A Feb. 4, 2020, 5:35 p.m. OK Java 11 TESTS 5 171 0 800
70921392 Oussama_1 A Feb. 12, 2020, 10:38 p.m. OK Java 11 TESTS 5 186 0 800
70747176 mohanned A Feb. 10, 2020, 5:43 p.m. OK Java 11 TESTS 5 186 0 800
70389999 abhishek.parmar A Feb. 5, 2020, 6:51 p.m. OK Java 11 TESTS 5 186 0 800
70908754 hagar_yasser A Feb. 12, 2020, 5:43 p.m. OK Java 8 TESTS 5 93 0 800
70612319 k0gn1zance_11 A Feb. 9, 2020, 8:50 a.m. OK Java 8 TESTS 5 93 0 800
70411548 Nirav412000 A Feb. 6, 2020, 5:29 a.m. OK Java 8 TESTS 5 93 0 800
70364425 asafiul A Feb. 5, 2020, 1:53 p.m. OK Java 8 TESTS 5 93 0 800
70357690 Rushi5032 A Feb. 5, 2020, 12:36 p.m. OK Java 8 TESTS 5 93 0 800
70350537 nandit A Feb. 5, 2020, 10:47 a.m. OK Java 8 TESTS 5 93 0 800
70349601 bluesky111 A Feb. 5, 2020, 10:31 a.m. OK Java 8 TESTS 5 93 0 800
70326078 Shameek A Feb. 5, 2020, 3:29 a.m. OK Java 8 TESTS 5 93 0 800
70318557 ProfBaltazar A Feb. 4, 2020, 10:16 p.m. OK Java 8 TESTS 5 93 0 800
70313064 JuanJr27 A Feb. 4, 2020, 7:50 p.m. OK Java 8 TESTS 5 93 0 800
70525409 pseudonimoX A Feb. 7, 2020, 7:25 p.m. OK JavaScript TESTS 5 30 0 800
70624905 Rinat_ A Feb. 9, 2020, 12:54 p.m. OK JavaScript TESTS 5 30 1024000 800
70923205 jhonber A Feb. 13, 2020, 12:23 a.m. OK JavaScript TESTS 5 31 1024000 800
70345075 SlavaG A Feb. 5, 2020, 9:25 a.m. OK Kotlin TESTS 5 109 0 800
70301283 formalist A Feb. 4, 2020, 4:57 p.m. OK Kotlin TESTS 5 109 0 800
70508220 wsx9735 A Feb. 7, 2020, 2:08 p.m. OK Kotlin TESTS 5 124 0 800
70327364 Spheniscine A Feb. 5, 2020, 4:09 a.m. OK Kotlin TESTS 5 124 0 800
70796035 badcw A Feb. 11, 2020, 3:31 p.m. OK Kotlin TESTS 5 139 204800 800
70781010 KanhuKeNanu A Feb. 11, 2020, 10:39 a.m. OK Kotlin TESTS 5 139 204800 800
70457484 Bloodwyn A Feb. 6, 2020, 5:50 p.m. OK Kotlin TESTS 5 140 307200 800
70454997 sanyacoder A Feb. 6, 2020, 5:14 p.m. OK Kotlin TESTS 5 155 204800 800
70418142 KanhuKeNanu A Feb. 6, 2020, 7:47 a.m. OK Kotlin TESTS 5 155 204800 800
70352819 cmplx-xyttmt A Feb. 5, 2020, 11:26 a.m. OK Kotlin TESTS 5 155 204800 800
70514205 htspur A Feb. 7, 2020, 3:46 p.m. OK Mono C# TESTS 5 46 0 800
70527001 voledyhil A Feb. 7, 2020, 8:05 p.m. OK Mono C# TESTS 5 46 0 800
70311270 TRR A Feb. 4, 2020, 7:17 p.m. OK Mono C# TESTS 5 46 102400 800
70371451 Ruban_Denic A Feb. 5, 2020, 3:21 p.m. OK Mono C# TESTS 5 46 102400 800
70612800 TrinidadTobago A Feb. 9, 2020, 9 a.m. OK Mono C# TESTS 5 46 102400 800
70756297 Mosyagin A Feb. 10, 2020, 9:17 p.m. OK Mono C# TESTS 5 46 102400 800
70803029 kaminoikari A Feb. 11, 2020, 5:31 p.m. OK Mono C# TESTS 5 46 102400 800
70326105 pye A Feb. 5, 2020, 3:30 a.m. OK Mono C# TESTS 5 61 819200 800
70723890 zhanyi_xiaolu A Feb. 10, 2020, 11:16 a.m. OK Mono C# TESTS 5 77 3788800 800
70406117 vjudge4 A Feb. 6, 2020, 2:22 a.m. OK MS C++ TESTS 5 15 0 800
70498295 vjudge2 A Feb. 7, 2020, 11:20 a.m. OK MS C++ TESTS 5 15 0 800
70543872 Prashant94157 A Feb. 8, 2020, 6:50 a.m. OK MS C++ TESTS 5 15 0 800
70709485 vjudge2 A Feb. 10, 2020, 6:26 a.m. OK MS C++ TESTS 5 15 0 800
70724252 vjudge1 A Feb. 10, 2020, 11:22 a.m. OK MS C++ TESTS 5 15 0 800
70766680 vjudge1 A Feb. 11, 2020, 5:09 a.m. OK MS C++ TESTS 5 15 0 800
70784454 sdibt5 A Feb. 11, 2020, 11:52 a.m. OK MS C++ TESTS 5 15 0 800
70788702 sdibt5 A Feb. 11, 2020, 1:07 p.m. OK MS C++ TESTS 5 15 0 800
70789809 sdibt4 A Feb. 11, 2020, 1:26 p.m. OK MS C++ TESTS 5 15 0 800
71054448 wqsz A Feb. 14, 2020, 11:12 a.m. OK MS C++ TESTS 5 15 0 800
70546349 minhnhathcmus A Feb. 8, 2020, 7:36 a.m. OK MS C++ 2017 TESTS 5 15 0 800
71063332 DimaKhovrov A Feb. 14, 2020, 1:55 p.m. OK MS C++ 2017 TESTS 5 15 0 800
70940427 hamed053 A Feb. 13, 2020, 8:11 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70765402 vjudge1 A Feb. 11, 2020, 4:27 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70724008 Quandoan A Feb. 10, 2020, 11:18 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70720369 so_myoung_lee A Feb. 10, 2020, 9:59 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70709929 Iftty A Feb. 10, 2020, 6:34 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70675804 qccccc A Feb. 9, 2020, 3:55 p.m. OK MS C++ 2017 TESTS 5 15 0 800
70620374 Ancient_mage A Feb. 9, 2020, 11:21 a.m. OK MS C++ 2017 TESTS 5 15 0 800
70585979 PrimoGod A Feb. 8, 2020, 6:37 p.m. OK MS C++ 2017 TESTS 5 15 0 800
70766933 santhisrikh A Feb. 11, 2020, 5:16 a.m. OK Node.js TESTS 5 155 921600 800
71067936 satyamcse A Feb. 14, 2020, 3:06 p.m. OK Node.js TESTS 5 217 1331200 800
70487401 NierKool A Feb. 7, 2020, 7:53 a.m. OK PascalABC.NET TESTS 5 295 2048000 800
70683076 Nidavellir A Feb. 9, 2020, 5:25 p.m. OK PascalABC.NET TESTS 5 311 0 800
70436811 MrCriss1 A Feb. 6, 2020, 1:04 p.m. OK PascalABC.NET TESTS 5 327 204800 800
70515156 yoralbayev A Feb. 7, 2020, 4:03 p.m. OK PHP TESTS 5 31 0 800
70448763 mayakin A Feb. 6, 2020, 3:50 p.m. OK PHP TESTS 5 46 0 800
70346210 Kiral55 A Feb. 5, 2020, 9:41 a.m. OK PHP TESTS 5 46 0 800
70479820 reyad A Feb. 7, 2020, 5:30 a.m. OK PHP TESTS 5 46 0 800
70688532 MAKARonin A Feb. 9, 2020, 6:55 p.m. OK PHP TESTS 5 46 0 800
70696527 petrosgr A Feb. 9, 2020, 11:08 p.m. OK PHP TESTS 5 46 0 800
70625252 sc.chrismoon A Feb. 9, 2020, 1 p.m. OK PyPy 2 TESTS 5 155 307200 800
70803927 ngtien2 A Feb. 11, 2020, 5:47 p.m. OK PyPy 2 TESTS 5 218 307200 800
70377121 sirgavila A Feb. 5, 2020, 4:36 p.m. OK PyPy 3 TESTS 5 124 1331200 800
70798839 gennadylaptev A Feb. 11, 2020, 4:19 p.m. OK PyPy 3 TESTS 5 139 1331200 800
70563068 chkdmin A Feb. 8, 2020, 12:26 p.m. OK PyPy 3 TESTS 5 139 1331200 800
70817577 tomo0608 A Feb. 12, 2020, 1:15 a.m. OK PyPy 3 TESTS 5 139 1433600 800
70414694 cordercorder A Feb. 6, 2020, 6:41 a.m. OK PyPy 3 TESTS 5 139 1433600 800
70357754 Mohax A Feb. 5, 2020, 12:37 p.m. OK PyPy 3 TESTS 5 139 1536000 800
70580901 Artyom_Kopan A Feb. 8, 2020, 5:10 p.m. OK PyPy 3 TESTS 5 139 1536000 800
70463192 Anshtyagi000 A Feb. 6, 2020, 7:24 p.m. OK PyPy 3 TESTS 5 139 1536000 800
70573645 Affe A Feb. 8, 2020, 3:02 p.m. OK PyPy 3 TESTS 5 139 1638400 800
70378362 pi0110 A Feb. 5, 2020, 4:53 p.m. OK PyPy 3 TESTS 5 139 1740800 800
70343121 bsr011 A Feb. 5, 2020, 8:55 a.m. OK Python 2 TESTS 5 171 0 800
70474190 zdrosb A Feb. 7, 2020, 2:42 a.m. OK Python 2 TESTS 5 187 0 800
71082981 AdityaKolte A Feb. 14, 2020, 7:49 p.m. OK Python 3 TESTS 5 93 307200 800
70921219 Abder A Feb. 12, 2020, 10:29 p.m. OK Python 3 TESTS 5 93 307200 800
70912992 vitorfhc A Feb. 12, 2020, 6:51 p.m. OK Python 3 TESTS 5 93 307200 800
70844615 xiaoxi061875 A Feb. 12, 2020, 1:06 p.m. OK Python 3 TESTS 5 93 307200 800
70807719 erickjohnross A Feb. 11, 2020, 7:05 p.m. OK Python 3 TESTS 5 93 307200 800
70768294 one23 A Feb. 11, 2020, 5:55 a.m. OK Python 3 TESTS 5 93 307200 800
70760346 heronry A Feb. 11, 2020, 12:48 a.m. OK Python 3 TESTS 5 93 307200 800
70749634 theunderdog A Feb. 10, 2020, 6:32 p.m. OK Python 3 TESTS 5 93 307200 800
70747696 AHR A Feb. 10, 2020, 5:52 p.m. OK Python 3 TESTS 5 93 307200 800
70744775 saibharath945 A Feb. 10, 2020, 5:02 p.m. OK Python 3 TESTS 5 93 307200 800
71074836 dandarprox A Feb. 14, 2020, 4:59 p.m. OK Rust TESTS 5 30 0 800
70517494 kobae964 A Feb. 7, 2020, 4:48 p.m. OK Rust TESTS 5 30 307200 800
70568170 terraformer A Feb. 8, 2020, 1:43 p.m. OK Rust TESTS 5 31 0 800
70512523 NChechulin A Feb. 7, 2020, 3:17 p.m. OK Rust TESTS 5 31 0 800
70552774 myduomilia A Feb. 8, 2020, 9:29 a.m. OK Rust TESTS 5 31 102400 800

remove filters

Back to search problems