Codeforces Round 790 (Div. 4)

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
1676 Codeforces Round 790 (Div. 4) FINISHED False 7200 85072463 May 10, 2022, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 68264 ) A Lucky? PROGRAMMING implementation

B'A ticket is a string consisting of six digits. A ticket is considered lucky if the sum of the first three digits is equal to the sum of the last three digits. Given a ticket, output if it is lucky or not. Note that a ticket can have leading zeroes. The first line of the input contains an integer t ( 1 <= q t <= q 10^3 ) -- the number of testcases. The description of each test consists of one line containing one string consisting of six digits. Output t lines, each of which contains the answer to the corresponding test case. Output "YES" if the given ticket is lucky, and "NO" otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer). In the first test case, the sum of the first three digits is 2 + 1 + 3 = 6 and the sum of the last three digits is 1 + 3 + 2 = 6 , they are equal so the answer is "YES". In the second test case, the sum of the first three digits is 9 + 7 + 3 = 19 and the sum of the last three digits is 8 + 9 + 4 = 21 , they are not equal so the answer is "NO". In the third test case, the sum of the first three digits is 0 + 4 + 5 = 9 and the sum of the last three digits is 2 + 0 + 7 = 9 , they are equal so the answer is "YES". '...

Tutorials

Codeforces Round #790 (Div. 4) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
156815823 hurshedabdullaev A May 11, 2022, 9:54 a.m. OK C# 10 TESTS 10 46 0
156880038 lazarolazr A May 12, 2022, 3:18 a.m. OK C# 8 TESTS 10 77 204800
156822830 bkifhr9 A May 11, 2022, 11:16 a.m. OK Clang++17 Diagnostics TESTS 10 31 0
156827723 vjudge1 A May 11, 2022, 12:05 p.m. OK Clang++17 Diagnostics TESTS 10 31 0
156841218 vinothkumar A May 11, 2022, 2:24 p.m. OK Clang++17 Diagnostics TESTS 10 31 0
156845908 smart_Pig A May 11, 2022, 3:21 p.m. OK Clang++17 Diagnostics TESTS 10 31 0
156857960 parda_05 A May 11, 2022, 5:55 p.m. OK Clang++17 Diagnostics TESTS 10 31 0
156819347 bkifhr9 A May 11, 2022, 10:35 a.m. OK Clang++17 Diagnostics TESTS 10 31 0
156853763 4803 A May 11, 2022, 5 p.m. OK Clang++17 Diagnostics TESTS 10 46 0
156815405 0101 A May 11, 2022, 9:49 a.m. OK FPC TESTS 10 15 0
156788074 Artik20 A May 11, 2022, 6:46 a.m. OK FPC TESTS 10 15 0
156787922 Terol12 A May 11, 2022, 6:44 a.m. OK FPC TESTS 10 15 0
156838021 PapayaNguyen A May 11, 2022, 1:49 p.m. OK FPC TESTS 10 15 409600
156865293 aryan_2021025 A May 11, 2022, 7:46 p.m. OK GNU C11 TESTS 10 15 0
156851382 Praneetha_9 A May 11, 2022, 4:29 p.m. OK GNU C11 TESTS 10 15 0
156858020 nakib25 A May 11, 2022, 5:56 p.m. OK GNU C11 TESTS 10 15 0
156859316 Maheshwari_4444 A May 11, 2022, 6:13 p.m. OK GNU C11 TESTS 10 15 0
156864760 Ashish_Varma A May 11, 2022, 7:37 p.m. OK GNU C11 TESTS 10 15 0
156851254 Gupta_2021065 A May 11, 2022, 4:27 p.m. OK GNU C11 TESTS 10 15 0
156875015 bkifhr10 A May 12, 2022, 12:41 a.m. OK GNU C11 TESTS 10 15 0
156882629 paul69 A May 12, 2022, 4:17 a.m. OK GNU C11 TESTS 10 15 0
156883977 Deer-hu A May 12, 2022, 4:45 a.m. OK GNU C11 TESTS 10 15 0
156884065 Tushargoyal A May 12, 2022, 4:47 a.m. OK GNU C11 TESTS 10 15 0
156877425 cbmango A May 12, 2022, 2:08 a.m. OK GNU C++14 TESTS 10 0 0
156853193 Alter_noob A May 11, 2022, 4:52 p.m. OK GNU C++14 TESTS 10 0 0
156856683 James_Bond_OO7 A May 11, 2022, 5:41 p.m. OK GNU C++14 TESTS 10 0 0
156860271 NMat A May 11, 2022, 6:27 p.m. OK GNU C++14 TESTS 10 0 0
156863805 harshitnahata48 A May 11, 2022, 7:20 p.m. OK GNU C++14 TESTS 10 0 0
156864377 hzaheezzz A May 11, 2022, 7:29 p.m. OK GNU C++14 TESTS 10 0 0
156866479 MorningStar_ A May 11, 2022, 8:08 p.m. OK GNU C++14 TESTS 10 0 0
156867365 Mahmoud_nagi A May 11, 2022, 8:25 p.m. OK GNU C++14 TESTS 10 0 0
156873338 shh0212 A May 11, 2022, 11:29 p.m. OK GNU C++14 TESTS 10 0 0
156875281 zaochen A May 12, 2022, 12:50 a.m. OK GNU C++14 TESTS 10 0 0
156886705 Ayub_King A May 12, 2022, 5:38 a.m. OK GNU C++17 TESTS 10 0 0
156883889 ben390 A May 12, 2022, 4:43 a.m. OK GNU C++17 TESTS 10 0 0
156883190 Gajraj170 A May 12, 2022, 4:29 a.m. OK GNU C++17 TESTS 10 0 0
156883020 AR79 A May 12, 2022, 4:26 a.m. OK GNU C++17 TESTS 10 0 0
156881765 Sonu_Kr A May 12, 2022, 3:58 a.m. OK GNU C++17 TESTS 10 0 0
156880815 dhruv.17 A May 12, 2022, 3:37 a.m. OK GNU C++17 TESTS 10 0 0
156880438 edwardjk_ A May 12, 2022, 3:29 a.m. OK GNU C++17 TESTS 10 0 0
156879186 abhinav_2217 A May 12, 2022, 2:56 a.m. OK GNU C++17 TESTS 10 0 0
156877402 AL-Muzahid A May 12, 2022, 2:07 a.m. OK GNU C++17 TESTS 10 0 0
156877020 aurizzan A May 12, 2022, 1:54 a.m. OK GNU C++17 TESTS 10 0 0
156837316 isPritchin A May 11, 2022, 1:42 p.m. OK GNU C++17 (64) TESTS 10 0 0
156888130 TAoz1 A May 12, 2022, 6:01 a.m. OK GNU C++17 (64) TESTS 10 0 0
156879135 dlehgns011 A May 12, 2022, 2:54 a.m. OK GNU C++17 (64) TESTS 10 0 0
156865694 sabyr A May 11, 2022, 7:53 p.m. OK GNU C++17 (64) TESTS 10 0 0
156850830 imnasim3.1415 A May 11, 2022, 4:21 p.m. OK GNU C++17 (64) TESTS 10 0 0
156847889 VenomIL A May 11, 2022, 3:46 p.m. OK GNU C++17 (64) TESTS 10 0 0
156845988 yash19_pro A May 11, 2022, 3:22 p.m. OK GNU C++17 (64) TESTS 10 0 0
156842836 Karn_ A May 11, 2022, 2:42 p.m. OK GNU C++17 (64) TESTS 10 0 0
156839316 MSab6ir A May 11, 2022, 2:04 p.m. OK GNU C++17 (64) TESTS 10 0 0
156834132 Nyans2022 A May 11, 2022, 1:09 p.m. OK GNU C++17 (64) TESTS 10 0 0
156867724 chirag.goel.mat21 A May 11, 2022, 8:32 p.m. OK GNU C++20 (64) TESTS 10 0 0
156870627 Esraa_A_Gaber A May 11, 2022, 9:42 p.m. OK GNU C++20 (64) TESTS 10 0 0
156871824 MayaZayn A May 11, 2022, 10:26 p.m. OK GNU C++20 (64) TESTS 10 0 0
156875067 The_Dark_Lord_ A May 12, 2022, 12:43 a.m. OK GNU C++20 (64) TESTS 10 0 0
156876272 defaultedplayer A May 12, 2022, 1:28 a.m. OK GNU C++20 (64) TESTS 10 0 0
156879108 thatsgonzalezz A May 12, 2022, 2:54 a.m. OK GNU C++20 (64) TESTS 10 0 0
156880004 rxhxn_30 A May 12, 2022, 3:17 a.m. OK GNU C++20 (64) TESTS 10 0 0
156881163 baby._.shadow A May 12, 2022, 3:44 a.m. OK GNU C++20 (64) TESTS 10 0 0
156882699 AnACPlease A May 12, 2022, 4:19 a.m. OK GNU C++20 (64) TESTS 10 0 0
156884688 mhmd_bz A May 12, 2022, 5 a.m. OK GNU C++20 (64) TESTS 10 0 0
156887399 jujimeizuo A May 12, 2022, 5:50 a.m. OK Go TESTS 10 15 102400
156879816 pepradere A May 12, 2022, 3:12 a.m. OK Go TESTS 10 30 102400
156863694 brian A May 11, 2022, 7:18 p.m. OK Go TESTS 10 30 102400
156823834 SaberXpro A May 11, 2022, 11:26 a.m. OK Java 11 TESTS 10 155 0
156828380 velocity_9 A May 11, 2022, 12:12 p.m. OK Java 11 TESTS 10 155 0
156790448 anantsinghal47 A May 11, 2022, 7:15 a.m. OK Java 11 TESTS 10 155 0
156872731 MunirKP A May 11, 2022, 11:01 p.m. OK Java 11 TESTS 10 156 0
156857048 chiragagarwals A May 11, 2022, 5:45 p.m. OK Java 11 TESTS 10 156 0
156830196 anmol.mact A May 11, 2022, 12:30 p.m. OK Java 11 TESTS 10 171 0
156822714 pratishank_05 A May 11, 2022, 11:15 a.m. OK Java 11 TESTS 10 171 0
156817085 BenQFanClubPresident A May 11, 2022, 10:09 a.m. OK Java 11 TESTS 10 171 0
156820168 lock_infinity A May 11, 2022, 10:44 a.m. OK Java 11 TESTS 10 186 0
156791643 amitmandal A May 11, 2022, 7:30 a.m. OK Java 11 TESTS 10 186 0
156865060 FirePegasus A May 11, 2022, 7:42 p.m. OK Java 8 TESTS 10 77 0
156848273 CrazyDr A May 11, 2022, 3:50 p.m. OK Java 8 TESTS 10 92 0
156883289 salamatbek10 A May 12, 2022, 4:31 a.m. OK Java 8 TESTS 10 93 0
156879508 abhi_shri A May 12, 2022, 3:04 a.m. OK Java 8 TESTS 10 93 0
156873469 kzhang2012 A May 11, 2022, 11:35 p.m. OK Java 8 TESTS 10 93 0
156854978 TopSafder A May 11, 2022, 5:17 p.m. OK Java 8 TESTS 10 93 0
156831535 sharpen A May 11, 2022, 12:43 p.m. OK Java 8 TESTS 10 93 0
156824490 akshaykumar200042 A May 11, 2022, 11:33 a.m. OK Java 8 TESTS 10 93 0
156821594 hassanU A May 11, 2022, 11:02 a.m. OK Java 8 TESTS 10 93 0
156815056 Mahip_19 A May 11, 2022, 9:45 a.m. OK Java 8 TESTS 10 93 0
156798698 PeredurOmega A May 11, 2022, 8:55 a.m. OK Kotlin 1.4 TESTS 10 108 0
156815293 malathi.dharma60 A May 11, 2022, 9:48 a.m. OK Kotlin 1.4 TESTS 10 109 0
156887513 naim19149 A May 12, 2022, 5:51 a.m. OK Kotlin 1.6 TESTS 10 171 0
156849735 Still_Theory A May 11, 2022, 4:08 p.m. OK MS C++ 2017 TESTS 10 0 0
156829304 CJXX A May 11, 2022, 12:22 p.m. OK MS C++ 2017 TESTS 10 0 0
156870612 bsherhj A May 11, 2022, 9:42 p.m. OK MS C++ 2017 TESTS 10 15 0
156847391 1_shivam A May 11, 2022, 3:40 p.m. OK MS C++ 2017 TESTS 10 15 0
156834882 Jeniffer0906 A May 11, 2022, 1:17 p.m. OK MS C++ 2017 TESTS 10 15 0
156830457 Azzzzzz A May 11, 2022, 12:33 p.m. OK MS C++ 2017 TESTS 10 15 0
156829236 lyg3715371537 A May 11, 2022, 12:21 p.m. OK MS C++ 2017 TESTS 10 15 0
156829139 kabite A May 11, 2022, 12:20 p.m. OK MS C++ 2017 TESTS 10 15 0
156822142 RngRRB A May 11, 2022, 11:08 a.m. OK MS C++ 2017 TESTS 10 15 0
156820989 yoyo5711 A May 11, 2022, 10:55 a.m. OK MS C++ 2017 TESTS 10 15 0
156828226 lukas_rimkus A May 11, 2022, 12:11 p.m. OK Node.js TESTS 10 46 1126400
156798858 XYShaoKang A May 11, 2022, 8:57 a.m. OK Node.js TESTS 10 46 1228800
156863721 oskarl A May 11, 2022, 7:18 p.m. OK PyPy 2 TESTS 10 77 0
156852412 ambs_ A May 11, 2022, 4:41 p.m. OK PyPy 3 TESTS 10 92 1945600
156848833 ttorpy A May 11, 2022, 3:57 p.m. OK PyPy 3 TESTS 10 109 2048000
156853999 koralk A May 11, 2022, 5:03 p.m. OK PyPy 3 TESTS 10 124 2457600
156816899 kojihashimoto A May 11, 2022, 10:07 a.m. OK PyPy 3 TESTS 10 124 2457600
156792878 lxylluvio A May 11, 2022, 7:46 a.m. OK PyPy 3 TESTS 10 124 2764800
156866385 satanic_turtle A May 11, 2022, 8:06 p.m. OK PyPy 3 TESTS 10 124 2867200
156832630 Leofun A May 11, 2022, 12:54 p.m. OK PyPy 3 TESTS 10 124 2867200
156831689 hk10537 A May 11, 2022, 12:44 p.m. OK PyPy 3 TESTS 10 124 2867200
156799656 Aya_Elwakil A May 11, 2022, 9:07 a.m. OK PyPy 3 TESTS 10 124 2867200
156852195 erudition_0705 A May 11, 2022, 4:39 p.m. OK PyPy 3 TESTS 10 124 3686400
156790755 sinsung6722 A May 11, 2022, 7:19 a.m. OK PyPy 3-64 TESTS 10 61 2150400
156869215 assa_codeforses A May 11, 2022, 9:05 p.m. OK PyPy 3-64 TESTS 10 62 2560000
156821651 Invinc3 A May 11, 2022, 11:02 a.m. OK PyPy 3-64 TESTS 10 62 3072000
156817884 jainmilind A May 11, 2022, 10:18 a.m. OK PyPy 3-64 TESTS 10 62 3072000
156854858 notTehlka A May 11, 2022, 5:16 p.m. OK PyPy 3-64 TESTS 10 77 2662400
156869198 criforces A May 11, 2022, 9:05 p.m. OK PyPy 3-64 TESTS 10 77 2764800
156859443 MistaAsh A May 11, 2022, 6:15 p.m. OK PyPy 3-64 TESTS 10 77 2867200
156800570 asdsasd A May 11, 2022, 9:18 a.m. OK PyPy 3-64 TESTS 10 77 2867200
156830987 terasa A May 11, 2022, 12:38 p.m. OK PyPy 3-64 TESTS 10 77 2969600
156856053 RedSpica A May 11, 2022, 5:33 p.m. OK PyPy 3-64 TESTS 10 77 3788800
156877249 lens0021 A May 12, 2022, 2:02 a.m. OK Python 3 TESTS 10 31 0
156851059 czar_01 A May 11, 2022, 4:24 p.m. OK Python 3 TESTS 10 31 0
156847767 zjgfig A May 11, 2022, 3:45 p.m. OK Python 3 TESTS 10 31 0
156844716 nastoyashiyprogrammist A May 11, 2022, 3:07 p.m. OK Python 3 TESTS 10 31 0
156840269 keerthanr A May 11, 2022, 2:14 p.m. OK Python 3 TESTS 10 31 0
156838811 Prokhor A May 11, 2022, 1:58 p.m. OK Python 3 TESTS 10 31 0
156831927 dudejaakshit A May 11, 2022, 12:47 p.m. OK Python 3 TESTS 10 31 0
156831841 COUB A May 11, 2022, 12:46 p.m. OK Python 3 TESTS 10 31 0
156829853 harshi_top A May 11, 2022, 12:27 p.m. OK Python 3 TESTS 10 31 0
156822609 mdadnanofficial123 A May 11, 2022, 11:14 a.m. OK Python 3 TESTS 10 31 0
156825509 purojok A May 11, 2022, 11:43 a.m. OK Rust 2021 TESTS 10 15 0
156789149 rumanbhuiyan A May 11, 2022, 6:58 a.m. OK Rust 2021 TESTS 10 15 0

remove filters

Back to search problems