Codeforces Round 530 (Div. 2)

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
1099 Codeforces Round 530 (Div. 2) FINISHED False 9000 185117099 Jan. 5, 2019, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12935 ) A Snowball PROGRAMMING implementation 900

B"Today's morning was exceptionally snowy. Meshanya decided to go outside and noticed a huge snowball rolling down the mountain! Luckily, there are two stones on that mountain. Initially, snowball is at height h and it has weight w . Each second the following sequence of events happens: snowball's weights increases by i , where i -- is the current height of snowball, then snowball hits the stone (if it's present at the current height), then snowball moves one meter down. If the snowball reaches height zero, it stops. There are exactly two stones on the mountain. First stone has weight u_1 and is located at height d_1 , the second one -- u_2 and d_2 respectively. When the snowball hits either of two stones, it loses weight equal to the weight of that stone. If after this snowball has negative weight, then its weight becomes zero, but the snowball continues moving as before. Find the weight of the snowball when it stops moving, that is, it reaches height 0. First line contains two integers w and h -- initial weight and height of the snowball ( 0 <= w <= 100 ; 1 <= h <= 100 ). Second line contains two integers u_1 and d_1 -- weight and height of the first stone ( 0 <= u_1 <= 100 ; 1 <= d_1 <= h ). Third line contains two integers u_2 and d_2 -- weight and heigth of the second stone ( 0 <= u_2 <= 100 ; 1 <= d_2 <= h ; d_1 ne d_2 ). Notice that stones always have different heights. Output a single integer -- final weight of the snowball after it reaches height 0. In the first example, initially a snowball of weight 4 is located at a height of 3, there are two stones of weight 1, at a height of 1 and 2, respectively. The following events occur sequentially: Thus, at the end the weight of the snowball is equal to 8. "...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49824531 yjzs9901 A Feb. 12, 2019, 10:46 a.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
54785765 DTUPIS A May 29, 2019, 3:44 a.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
56946129 vjudge1 A July 12, 2019, 10:24 p.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
60743643 Ghozlan A Sept. 17, 2019, 10:33 p.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
67180217 Dariush_M A Dec. 18, 2019, 10:11 p.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
48100151 harshrajani460 A Jan. 8, 2019, 7:53 p.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
67796435 hossein7888 A Dec. 28, 2019, 4:52 p.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
48717258 lomaTT A Jan. 22, 2019, 11:54 a.m. OK Clang++17 Diagnostics TESTS 58 46 0 900
63123181 sash0 A Oct. 22, 2019, noon OK D TESTS 58 46 0 900
56552206 HQT2003 A July 5, 2019, 10:21 a.m. OK FPC TESTS 58 31 0 900
49855006 panteleevda A Feb. 13, 2019, 6:41 a.m. OK FPC TESTS 58 31 0 900
49535766 QRUSH A Feb. 6, 2019, 3:53 p.m. OK FPC TESTS 58 31 0 900
49526198 MrCriss1 A Feb. 6, 2019, 11:29 a.m. OK FPC TESTS 58 31 0 900
49201597 DarkAvengerr A Jan. 30, 2019, 12:36 p.m. OK FPC TESTS 58 31 0 900
48919073 YMJcvjk A Jan. 25, 2019, 6:53 a.m. OK FPC TESTS 58 31 0 900
48321205 luogu_bot1 A Jan. 13, 2019, 9:23 a.m. OK FPC TESTS 58 31 0 900
48212243 Ahriman A Jan. 11, 2019, 12:42 p.m. OK FPC TESTS 58 31 0 900
61015210 ghosthunterk A Sept. 21, 2019, 1:12 p.m. OK FPC TESTS 58 31 0 900
48096158 QAcoder A Jan. 8, 2019, 4:58 p.m. OK FPC TESTS 58 31 0 900
48316072 vjudge1 A Jan. 13, 2019, 6:37 a.m. OK GNU C11 TESTS 58 30 0 900
54535324 kaiboy A May 23, 2019, 7:42 p.m. OK GNU C11 TESTS 58 30 0 900
48018221 pyqjw A Jan. 6, 2019, 2:24 a.m. OK GNU C11 TESTS 58 30 0 900
48081679 MR.JAAT A Jan. 8, 2019, 8:19 a.m. OK GNU C11 TESTS 58 30 0 900
48852894 jayshah A Jan. 23, 2019, 5:44 p.m. OK GNU C11 TESTS 58 30 0 900
64570089 zzarif99 A Nov. 9, 2019, 8:53 a.m. OK GNU C11 TESTS 58 31 0 900
65550261 farhanitrate A Nov. 22, 2019, 6:37 p.m. OK GNU C11 TESTS 58 31 0 900
66135290 0xbaadf00d A Dec. 1, 2019, 11:57 a.m. OK GNU C11 TESTS 58 31 0 900
66135618 0xbaadf00d A Dec. 1, 2019, 12:03 p.m. OK GNU C11 TESTS 58 31 0 900
66137586 friedrich_hayek A Dec. 1, 2019, 12:54 p.m. OK GNU C11 TESTS 58 31 0 900
48543023 EVERNEWBIE A Jan. 18, 2019, 5:43 p.m. OK GNU C++11 TESTS 58 30 0 900
48993225 Aradmt A Jan. 26, 2019, 3:22 p.m. OK GNU C++11 TESTS 58 30 0 900
49696708 fadlia68 A Feb. 10, 2019, 2:06 p.m. OK GNU C++11 TESTS 58 30 0 900
49853254 AVM.Martin A Feb. 13, 2019, 5:36 a.m. OK GNU C++11 TESTS 58 30 0 900
49859398 vjudge2 A Feb. 13, 2019, 8:47 a.m. OK GNU C++11 TESTS 58 30 0 900
50269810 graceoflives A Feb. 21, 2019, 6:37 a.m. OK GNU C++11 TESTS 58 30 0 900
51239739 vjudge2 A March 12, 2019, 8:49 p.m. OK GNU C++11 TESTS 58 30 0 900
53642339 vjudge5 A May 1, 2019, 5:08 p.m. OK GNU C++11 TESTS 58 30 0 900
56767420 pk_star A July 9, 2019, 7:12 p.m. OK GNU C++11 TESTS 58 30 0 900
57348373 vjudge2 A July 20, 2019, 1:41 a.m. OK GNU C++11 TESTS 58 30 0 900
49394624 yashpateletw A Feb. 3, 2019, 11:53 a.m. OK GNU C++14 TESTS 58 15 0 900
57347732 vjudge5 A July 20, 2019, 1:12 a.m. OK GNU C++14 TESTS 58 15 0 900
54754464 Shreyas_9991 A May 28, 2019, 2:22 p.m. OK GNU C++14 TESTS 58 15 0 900
52483830 Batja_15 A April 8, 2019, 7:36 a.m. OK GNU C++14 TESTS 58 15 0 900
52483590 TuGSGeReL A April 8, 2019, 7:25 a.m. OK GNU C++14 TESTS 58 15 0 900
50144554 jiuhuche A Feb. 19, 2019, 2:37 a.m. OK GNU C++14 TESTS 58 15 0 900
49456160 sandecoder A Feb. 4, 2019, 10:20 a.m. OK GNU C++14 TESTS 58 15 0 900
48599297 humble_man A Jan. 20, 2019, 7:38 a.m. OK GNU C++14 TESTS 58 15 0 900
48519542 nitishgujjar12 A Jan. 18, 2019, 6:07 a.m. OK GNU C++14 TESTS 58 15 0 900
48466553 mario056 A Jan. 16, 2019, 5:33 p.m. OK GNU C++14 TESTS 58 15 0 900
50605159 spyral A Feb. 28, 2019, 2:15 p.m. OK GNU C++17 TESTS 58 15 0 900
50735807 yintama A March 3, 2019, 12:52 p.m. OK GNU C++17 TESTS 58 15 0 900
50864837 Elora24 A March 5, 2019, 7:48 p.m. OK GNU C++17 TESTS 58 15 0 900
51849513 A07110420 A March 26, 2019, 7:06 a.m. OK GNU C++17 TESTS 58 15 0 900
52484127 Erkhemkhuu A April 8, 2019, 7:49 a.m. OK GNU C++17 TESTS 58 15 0 900
52489662 Rick1 A April 8, 2019, 11:02 a.m. OK GNU C++17 TESTS 58 15 0 900
54462639 thienlongtpct A May 21, 2019, 7:53 p.m. OK GNU C++17 TESTS 58 15 0 900
54528171 biapitic A May 23, 2019, 3:37 p.m. OK GNU C++17 TESTS 58 15 0 900
54664242 STM1 A May 26, 2019, 12:23 p.m. OK GNU C++17 TESTS 58 15 0 900
58475394 jos_wll A Aug. 9, 2019, 2:51 a.m. OK GNU C++17 TESTS 58 15 0 900
68469267 ktateish A Jan. 9, 2020, 11:27 p.m. OK Go TESTS 58 31 0 900
48651195 fc-lib-xyz A Jan. 20, 2019, 9:11 p.m. OK Go TESTS 58 31 0 900
48039623 vcdm A Jan. 6, 2019, 6:07 p.m. OK Go TESTS 58 31 0 900
48054894 2008061626 A Jan. 7, 2019, 11:42 a.m. OK Go TESTS 58 62 0 900
48194965 peter_jerry_ye A Jan. 10, 2019, 8:52 p.m. OK Haskell TESTS 58 15 8396800 900
48042672 Hillmouse A Jan. 6, 2019, 9:15 p.m. OK Haskell TESTS 58 31 8499200 900
69946561 sav0I A Feb. 1, 2020, 7:45 a.m. OK Java 11 TESTS 58 218 0 900
61909404 Limbobo A Oct. 5, 2019, 10:32 a.m. OK Java 8 TESTS 58 109 0 900
61055979 mufaddalnaya A Sept. 22, 2019, 8:04 a.m. OK Java 8 TESTS 58 109 0 900
59594278 sdfksdf A Aug. 27, 2019, 11:48 p.m. OK Java 8 TESTS 58 109 0 900
58829434 TIGER16 A Aug. 14, 2019, 5:17 p.m. OK Java 8 TESTS 58 109 0 900
57910793 beroul A July 28, 2019, 8:04 p.m. OK Java 8 TESTS 58 109 0 900
57748652 Maxoud A July 25, 2019, 1:57 p.m. OK Java 8 TESTS 58 109 0 900
52644082 Morgan_Y A April 12, 2019, 1:44 p.m. OK Java 8 TESTS 58 109 0 900
51283449 icpc_loser A March 14, 2019, 5:50 a.m. OK Java 8 TESTS 58 109 0 900
49242086 anisiyer A Jan. 31, 2019, 10:50 a.m. OK Java 8 TESTS 58 109 0 900
49150530 Hazard10 A Jan. 29, 2019, 12:28 p.m. OK Java 8 TESTS 58 109 0 900
48014634 Askander A Jan. 5, 2019, 9:25 p.m. OK JavaScript TESTS 58 46 0 900
51223188 jhw866 A March 12, 2019, 1:12 p.m. OK Kotlin TESTS 58 124 0 900
62230435 omar6413 A Oct. 9, 2019, 8:26 p.m. OK Kotlin TESTS 58 140 0 900
48031640 HantzFuck A Jan. 6, 2019, 12:47 p.m. OK Kotlin TESTS 58 140 0 900
49071265 Rabid A Jan. 27, 2019, 9 p.m. OK Kotlin TESTS 58 140 102400 900
48508922 BlackLunx A Jan. 17, 2019, 7:20 p.m. OK Kotlin TESTS 58 140 102400 900
48321272 odinsonThorin A Jan. 13, 2019, 9:25 a.m. OK Kotlin TESTS 58 140 102400 900
48160548 z39 A Jan. 9, 2019, 7:18 p.m. OK Kotlin TESTS 58 140 102400 900
59077818 xfelix9977 A Aug. 19, 2019, 7:51 a.m. OK Kotlin TESTS 58 155 0 900
48018956 sshpark A Jan. 6, 2019, 3:25 a.m. OK Kotlin TESTS 58 155 102400 900
48065238 Olegan777 A Jan. 7, 2019, 5:43 p.m. OK Kotlin TESTS 58 155 102400 900
48062485 Ruban_Denic A Jan. 7, 2019, 4:09 p.m. OK Mono C# TESTS 58 46 0 900
55311950 m1_k3 A June 8, 2019, 6:15 p.m. OK Mono C# TESTS 58 46 0 900
48192028 Mandrade A Jan. 10, 2019, 6:31 p.m. OK Mono C# TESTS 58 61 0 900
48992752 nemars A Jan. 26, 2019, 3:09 p.m. OK Mono C# TESTS 58 61 0 900
59240332 GusztavSzmolik A Aug. 21, 2019, 7:21 p.m. OK Mono C# TESTS 58 61 0 900
48039776 AlexTemp A Jan. 6, 2019, 6:15 p.m. OK Mono C# TESTS 58 61 0 900
55312307 m1_k3 A June 8, 2019, 6:30 p.m. OK Mono C# TESTS 58 62 0 900
54053224 og.kostya A May 13, 2019, 6:11 a.m. OK Mono C# TESTS 58 62 0 900
48281789 hwfbcisod A Jan. 12, 2019, 8:21 a.m. OK Mono C# TESTS 58 62 0 900
47999141 jeanstefanovich A Jan. 5, 2019, 5:55 p.m. OK Mono C# TESTS 58 62 0 900
48079244 Pbbben A Jan. 8, 2019, 6:33 a.m. OK MS C++ TESTS 58 15 0 900
48773716 vjudge1 A Jan. 23, 2019, 2:28 a.m. OK MS C++ TESTS 58 30 0 900
51244302 vjudge3 A March 13, 2019, 3:09 a.m. OK MS C++ TESTS 58 30 0 900
51318150 vjudge3 A March 15, 2019, 3:04 a.m. OK MS C++ TESTS 58 30 0 900
57350620 vjudge1 A July 20, 2019, 3:14 a.m. OK MS C++ TESTS 58 30 0 900
57350750 vjudge3 A July 20, 2019, 3:20 a.m. OK MS C++ TESTS 58 30 0 900
57350911 vjudge3 A July 20, 2019, 3:27 a.m. OK MS C++ TESTS 58 30 0 900
57350957 vjudge3 A July 20, 2019, 3:29 a.m. OK MS C++ TESTS 58 30 0 900
48475445 vjudge2 A Jan. 17, 2019, 2:05 a.m. OK MS C++ TESTS 58 30 0 900
48518518 HozeSio A Jan. 18, 2019, 5:44 a.m. OK MS C++ TESTS 58 30 0 900
67520678 vjudge3 A Dec. 24, 2019, 12:18 p.m. OK MS C++ 2017 TESTS 58 31 0 900
67519822 vjudge3 A Dec. 24, 2019, 12:03 p.m. OK MS C++ 2017 TESTS 58 31 0 900
67254453 Tangerine A Dec. 19, 2019, 8:56 p.m. OK MS C++ 2017 TESTS 58 31 0 900
59958209 KATAYPEPE A Sept. 3, 2019, 4:58 p.m. OK MS C++ 2017 TESTS 58 31 0 900
59373712 manav272 A Aug. 23, 2019, 8:24 p.m. OK MS C++ 2017 TESTS 58 31 0 900
58569523 Vovkaez A Aug. 11, 2019, 9:28 a.m. OK MS C++ 2017 TESTS 58 31 0 900
58332756 hosein_bidaki A Aug. 5, 2019, 10:06 a.m. OK MS C++ 2017 TESTS 58 31 0 900
58322609 vjudge3 A Aug. 5, 2019, 6:30 a.m. OK MS C++ 2017 TESTS 58 31 0 900
58321259 vjudge1 A Aug. 5, 2019, 5:56 a.m. OK MS C++ 2017 TESTS 58 31 0 900
58143303 somecoders A Aug. 1, 2019, 7:17 p.m. OK MS C++ 2017 TESTS 58 31 0 900
48034852 pirvu.catalin94 A Jan. 6, 2019, 2:49 p.m. OK Node.js TESTS 58 155 512000 900
48302598 moballack A Jan. 12, 2019, 5:47 p.m. OK Node.js TESTS 58 155 512000 900
48155133 kaip A Jan. 9, 2019, 4:59 p.m. OK Node.js TESTS 58 156 409600 900
48103768 kaip A Jan. 9, 2019, 1:26 a.m. OK Node.js TESTS 58 156 512000 900
48103903 kaip A Jan. 9, 2019, 1:42 a.m. OK Node.js TESTS 58 156 512000 900
48103382 kaip A Jan. 9, 2019, 12:38 a.m. OK Node.js TESTS 58 156 614400 900
48154480 kaip A Jan. 9, 2019, 4:49 p.m. OK Node.js TESTS 58 170 409600 900
48103778 kaip A Jan. 9, 2019, 1:28 a.m. OK Node.js TESTS 58 171 409600 900
48103615 kaip A Jan. 9, 2019, 1:07 a.m. OK Node.js TESTS 58 171 512000 900
48154786 kaip A Jan. 9, 2019, 4:53 p.m. OK Node.js TESTS 58 186 409600 900
48379967 sk0 A Jan. 14, 2019, 9:57 a.m. OK Ocaml TESTS 58 31 0 900
48015801 thevirtual A Jan. 5, 2019, 10:38 p.m. OK Ocaml TESTS 58 31 0 900
54969686 28Nik A June 2, 2019, 8:03 a.m. OK PascalABC.NET TESTS 58 186 0 900
56237761 Gimber A June 28, 2019, 5 p.m. OK PascalABC.NET TESTS 58 187 0 900
48013299 dobrihlopez A Jan. 5, 2019, 8:37 p.m. OK PascalABC.NET TESTS 58 187 0 900
48542188 bochkov A Jan. 18, 2019, 5:18 p.m. OK PascalABC.NET TESTS 58 202 0 900
48526480 gmusya A Jan. 18, 2019, 9:16 a.m. OK PascalABC.NET TESTS 58 296 409600 900
58547802 GRL A Aug. 10, 2019, 5:44 p.m. OK PascalABC.NET TESTS 58 311 102400 900
53823447 Houy3 A May 6, 2019, 2:33 p.m. OK PascalABC.NET TESTS 58 311 102400 900
69921325 Nidavellir A Jan. 31, 2020, 6:30 p.m. OK PascalABC.NET TESTS 58 311 102400 900
48157751 cristi17 A Jan. 9, 2019, 5:57 p.m. OK PascalABC.NET TESTS 58 311 307200 900
48007476 dan8643 A Jan. 5, 2019, 6:42 p.m. OK PascalABC.NET TESTS 58 312 409600 900
48069383 hoxit A Jan. 7, 2019, 8:41 p.m. OK PHP TESTS 58 46 0 900
47996937 katalama A Jan. 5, 2019, 5:45 p.m. OK PHP TESTS 58 46 0 900
48001628 Ninjo A Jan. 5, 2019, 6:08 p.m. OK PHP TESTS 58 46 512000 900
54515412 codeseeker A May 23, 2019, 9:33 a.m. OK PyPy 2 TESTS 58 124 0 900
66030231 aaa_bbb_ccc A Nov. 30, 2019, 9:55 a.m. OK PyPy 2 TESTS 58 124 0 900
48013123 c1729 A Jan. 5, 2019, 8:32 p.m. OK PyPy 2 TESTS 58 139 0 900
50329782 gatsko A Feb. 22, 2019, 6:05 p.m. OK PyPy 2 TESTS 58 171 1945600 900
56685270 atarw A July 7, 2019, 9:45 p.m. OK PyPy 2 TESTS 58 249 7782400 900
48058971 Riolku A Jan. 7, 2019, 1:58 p.m. OK PyPy 3 TESTS 58 124 0 900
48017730 whatshisbucket A Jan. 6, 2019, 1:37 a.m. OK PyPy 3 TESTS 58 124 0 900
48018230 congthanh123 A Jan. 6, 2019, 2:24 a.m. OK PyPy 3 TESTS 58 139 0 900
54318634 nivekiba A May 17, 2019, 7:37 p.m. OK PyPy 3 TESTS 58 140 0 900
69012992 dancooper A Jan. 18, 2020, 4:25 a.m. OK PyPy 3 TESTS 58 140 0 900
64477660 SAPTOO A Nov. 7, 2019, 2:53 p.m. OK PyPy 3 TESTS 58 140 0 900
61207501 CubeCakes A Sept. 24, 2019, 10:17 a.m. OK PyPy 3 TESTS 58 140 0 900
60694118 deadguy A Sept. 16, 2019, 6:40 p.m. OK PyPy 3 TESTS 58 140 0 900
58322284 vjudge5 A Aug. 5, 2019, 6:22 a.m. OK PyPy 3 TESTS 58 140 0 900
56720903 propashii A July 8, 2019, 4:47 p.m. OK PyPy 3 TESTS 58 140 0 900
47996676 tuonguyen A Jan. 5, 2019, 5:43 p.m. OK Python 2 TESTS 58 171 0 900
58323340 vjudge5 A Aug. 5, 2019, 6:48 a.m. OK Python 2 TESTS 58 171 0 900
50161585 Luxo A Feb. 19, 2019, 12:49 p.m. OK Python 2 TESTS 58 171 0 900
50091427 golgk A Feb. 18, 2019, 10:36 a.m. OK Python 2 TESTS 58 171 0 900
49473088 vjudge2 A Feb. 4, 2019, 6:03 p.m. OK Python 2 TESTS 58 171 0 900
48545271 UtkuDuzen A Jan. 18, 2019, 7:03 p.m. OK Python 2 TESTS 58 171 0 900
48479187 nealzane A Jan. 17, 2019, 5:07 a.m. OK Python 2 TESTS 58 171 0 900
48115714 wangzpeng A Jan. 9, 2019, 12:36 p.m. OK Python 2 TESTS 58 171 0 900
48055137 franckmy A Jan. 7, 2019, 11:52 a.m. OK Python 2 TESTS 58 171 0 900
48013157 kaif_7 A Jan. 5, 2019, 8:33 p.m. OK Python 2 TESTS 58 171 0 900
50770070 Jsxft A March 4, 2019, 3:42 a.m. OK Python 3 TESTS 58 108 0 900
48722760 ded-500 A Jan. 22, 2019, 2:15 p.m. OK Python 3 TESTS 58 108 0 900
48401505 Amoo_Hashem_Mehraban A Jan. 14, 2019, 9:41 p.m. OK Python 3 TESTS 58 108 0 900
48191527 arMedBeta A Jan. 10, 2019, 6:13 p.m. OK Python 3 TESTS 58 108 0 900
48118689 20132121 A Jan. 9, 2019, 2:26 p.m. OK Python 3 TESTS 58 108 0 900
48051185 farraf22545 A Jan. 7, 2019, 9:11 a.m. OK Python 3 TESTS 58 108 0 900
48034175 dilipchoudhary A Jan. 6, 2019, 2:22 p.m. OK Python 3 TESTS 58 108 0 900
48031832 bHemp A Jan. 6, 2019, 12:54 p.m. OK Python 3 TESTS 58 108 0 900
48029917 Varvara_Dmitrievna A Jan. 6, 2019, 11:44 a.m. OK Python 3 TESTS 58 108 0 900
69917431 mastersurv_hunt A Jan. 31, 2020, 5:18 p.m. OK Python 3 TESTS 58 109 0 900
48018359 cielavenir A Jan. 6, 2019, 2:36 a.m. OK Ruby TESTS 58 62 0 900
48197258 old_boo A Jan. 11, 2019, 12:28 a.m. OK Rust TESTS 58 46 0 900
48116761 ovdemetrius A Jan. 9, 2019, 1:17 p.m. OK Scala TESTS 58 421 0 900
49370158 mishgan A Feb. 2, 2019, 4:56 p.m. OK Scala TESTS 58 436 0 900
52670223 jedikni A April 13, 2019, 7:07 a.m. OK Scala TESTS 58 514 0 900

remove filters

Back to search problems