Codeforces Round 272 (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
476 Codeforces Round 272 (Div. 2) FINISHED False 7200 324489604 Oct. 12, 2014, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5770 ) C Dreamoon and Sums PROGRAMMING math 1700

B'Dreamoon loves summing up something for no reason. One day he obtains two integers a and b occasionally. He wants to calculate the sum of all nice integers. Positive integer x is called nice if and , where k is some integer number in range [1, xe2 x80 x89a]. By we denote the quotient of integer division of x and y. By we denote the remainder of integer division of x and y. You can read more about these operations here: http://goo.gl/AcsXhT. The answer may be large, so please print its remainder modulo 1 xe2 x80 x89000 xe2 x80 x89000 xe2 x80 x89007 (109 xe2 x80 x89+ xe2 x80 x897). Can you compute it faster than Dreamoon? The single line of the input contains two integers a, b (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a, xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107). Print a single integer representing the answer modulo 1 xe2 x80 x89000 xe2 x80 x89000 xe2 x80 x89007 (109 xe2 x80 x89+ xe2 x80 x897). For the first sample, there are no nice integers because is always zero. For the second sample, the set of nice integers is {3, xe2 x80 x895}.'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
18587593 ikkiokumura C June 18, 2016, 10:05 p.m. OK FPC TESTS 59 15 0 1700
21993777 nguyenvu9405 C Nov. 2, 2016, 2:21 p.m. OK FPC TESTS 59 15 0 1700
26495336 dailong C April 19, 2017, 12:33 p.m. OK FPC TESTS 59 15 1638400 1700
13395180 jiangyx C Oct. 4, 2015, 6:04 a.m. OK FPC TESTS 59 31 0 1700
41429682 TShT C Aug. 10, 2018, 11:47 a.m. OK FPC TESTS 59 31 0 1700
19882162 Gray_58 C Aug. 15, 2016, 7:18 a.m. OK FPC TESTS 59 31 1638400 1700
27935874 KagamiharaNadeshiko C June 21, 2017, 3:01 a.m. OK FPC TESTS 59 31 1638400 1700
21993720 nguyenvu9405 C Nov. 2, 2016, 2:19 p.m. OK FPC TESTS 59 452 0 1700
22009651 thanhngoc54 C Nov. 3, 2016, 9:39 a.m. OK FPC TESTS 59 546 0 1700
32142870 Peterglezroa C Nov. 8, 2017, 4:33 p.m. OK GNU C TESTS 59 15 0 1700
14310767 pantho C Nov. 17, 2015, 10:12 a.m. OK GNU C TESTS 59 15 0 1700
23665828 somu1997 C Jan. 9, 2017, 3:22 p.m. OK GNU C TESTS 59 15 1843200 1700
23537881 yigezhe C Jan. 4, 2017, 2:56 p.m. OK GNU C TESTS 59 15 1945600 1700
32232634 dalek_cos C Nov. 12, 2017, 12:50 a.m. OK GNU C TESTS 59 30 0 1700
13211037 vjudge2 C Sept. 24, 2015, 9:28 p.m. OK GNU C TESTS 59 30 0 1700
13202879 vjudge3 C Sept. 24, 2015, 11:09 a.m. OK GNU C TESTS 59 30 0 1700
37920894 ANONYMOUS_M C May 6, 2018, 6:37 a.m. OK GNU C TESTS 59 30 3379200 1700
13185585 redwanahmed C Sept. 23, 2015, 12:30 p.m. OK GNU C TESTS 59 702 0 1700
22679980 ayman996 C Dec. 3, 2016, 3:24 p.m. OK GNU C++ TESTS 59 15 0 1700
30045484 3015218054 C Sept. 4, 2017, 1:57 a.m. OK GNU C++ TESTS 59 15 0 1700
27707240 hesham_magdy C June 10, 2017, 1:37 p.m. OK GNU C++ TESTS 59 15 0 1700
27614358 ZaidAlkhateeb C June 6, 2017, 1:04 p.m. OK GNU C++ TESTS 59 15 0 1700
23010639 vjudge3 C Dec. 15, 2016, 3:27 p.m. OK GNU C++ TESTS 59 15 0 1700
23010276 vjudge2 C Dec. 15, 2016, 3:13 p.m. OK GNU C++ TESTS 59 15 0 1700
23009952 vjudge2 C Dec. 15, 2016, 3:01 p.m. OK GNU C++ TESTS 59 15 0 1700
23009929 DatVu C Dec. 15, 2016, 3:01 p.m. OK GNU C++ TESTS 59 15 0 1700
22680028 ayman996 C Dec. 3, 2016, 3:29 p.m. OK GNU C++ TESTS 59 15 0 1700
22584641 Youssef_Ali C Nov. 28, 2016, 8:23 p.m. OK GNU C++ TESTS 59 15 0 1700
32344150 ablemus4774 C Nov. 16, 2017, 1:25 a.m. OK GNU C11 TESTS 59 15 0 1700
15546892 norhh C Jan. 24, 2016, 4:53 a.m. OK GNU C11 TESTS 59 15 0 1700
20756207 praveen80 C Sept. 19, 2016, 1:17 p.m. OK GNU C11 TESTS 59 31 0 1700
36469692 _lucifer_ C March 22, 2018, 5:51 a.m. OK GNU C11 TESTS 59 265 3276800 1700
27918639 AryanSM C June 20, 2017, 6:36 a.m. OK GNU C++11 TESTS 59 15 0 1700
27318843 aj116 C May 24, 2017, 11:11 a.m. OK GNU C++11 TESTS 59 15 0 1700
26961435 maheralkassir C May 8, 2017, 5:19 p.m. OK GNU C++11 TESTS 59 15 0 1700
32148060 Gimape07 C Nov. 8, 2017, 11 p.m. OK GNU C++11 TESTS 59 15 0 1700
22671978 Boson007 C Dec. 3, 2016, 8:21 a.m. OK GNU C++11 TESTS 59 15 0 1700
22503789 pr3pony C Nov. 26, 2016, 8:18 a.m. OK GNU C++11 TESTS 59 15 0 1700
22672046 Boson007 C Dec. 3, 2016, 8:24 a.m. OK GNU C++11 TESTS 59 15 0 1700
30647672 VinayakaB C Sept. 23, 2017, 4 p.m. OK GNU C++11 TESTS 59 15 0 1700
29506534 YazanZk C Aug. 16, 2017, 1:30 p.m. OK GNU C++11 TESTS 59 15 0 1700
27924283 sam96 C June 20, 2017, 11:56 a.m. OK GNU C++11 TESTS 59 15 0 1700
30805507 coder_atulit_2017 C Sept. 28, 2017, 1:09 p.m. OK GNU C++14 TESTS 59 15 0 1700
50316175 avuu C Feb. 22, 2019, 12:22 p.m. OK GNU C++14 TESTS 59 15 0 1700
32494311 saurabh3240 C Nov. 20, 2017, 9:13 a.m. OK GNU C++14 TESTS 59 15 0 1700
32337715 Combi C Nov. 15, 2017, 4:42 p.m. OK GNU C++14 TESTS 59 15 0 1700
32329141 oToToT C Nov. 15, 2017, 10:47 a.m. OK GNU C++14 TESTS 59 15 0 1700
32328806 polarz C Nov. 15, 2017, 10:28 a.m. OK GNU C++14 TESTS 59 15 0 1700
31852675 MohumadSalah C Oct. 28, 2017, 11:15 p.m. OK GNU C++14 TESTS 59 15 0 1700
31120902 _QWOiNYUIVMPFSBKLiGSMAP_ C Oct. 7, 2017, 3:44 p.m. OK GNU C++14 TESTS 59 15 0 1700
30602312 trijeet C Sept. 21, 2017, 10:41 p.m. OK GNU C++14 TESTS 59 15 0 1700
30528815 Noureldin_Khaled C Sept. 19, 2017, 8:28 p.m. OK GNU C++14 TESTS 59 15 0 1700
44933553 vjudge1 C Oct. 27, 2018, 3:44 a.m. OK GNU C++17 TESTS 59 15 204800 1700
61570916 xavier_98 C Sept. 30, 2019, 6:38 p.m. OK GNU C++17 TESTS 59 30 0 1700
49915081 Stroustrup C Feb. 14, 2019, 4:05 p.m. OK GNU C++17 TESTS 59 30 0 1700
51138614 Surya_41 C March 10, 2019, 5:44 p.m. OK GNU C++17 TESTS 59 30 0 1700
62753212 _songsari_ C Oct. 17, 2019, 2:52 a.m. OK GNU C++17 TESTS 59 30 0 1700
66607782 aakashsinghdude C Dec. 10, 2019, 7:24 p.m. OK GNU C++17 TESTS 59 30 0 1700
68724449 manish_joshi C Jan. 13, 2020, 5:25 p.m. OK GNU C++17 TESTS 59 30 0 1700
40115763 Bation_King C July 9, 2018, 2:31 p.m. OK GNU C++17 TESTS 59 30 409600 1700
69611445 GrimReaper42 C Jan. 27, 2020, 11:38 a.m. OK GNU C++17 TESTS 59 31 0 1700
69664463 CrossHair777 C Jan. 28, 2020, 10:47 a.m. OK GNU C++17 TESTS 59 31 0 1700
13603576 eugene_lim C Oct. 14, 2015, 8:12 a.m. OK Java 7 TESTS 59 93 0 1700
14780786 DukeOfYork C Dec. 13, 2015, 6:01 a.m. OK Java 7 TESTS 59 140 0 1700
18997001 vjudge1 C July 10, 2016, 7:06 a.m. OK Java 7 TESTS 59 140 0 1700
15401430 suigingin C Jan. 16, 2016, 9:56 a.m. OK Java 7 TESTS 59 140 0 1700
14932383 MedoN11 C Dec. 23, 2015, 2:33 a.m. OK Java 7 TESTS 59 592 0 1700
27144865 Ajudiya_13 C May 15, 2017, 8:10 p.m. OK Java 8 TESTS 59 108 0 1700
58256991 ZeyadKhattab C Aug. 4, 2019, 10:30 a.m. OK Java 8 TESTS 59 109 0 1700
49608623 Ahmed.Shawky C Feb. 7, 2019, 9:19 p.m. OK Java 8 TESTS 59 109 0 1700
44452071 rajatjain C Oct. 17, 2018, 4:20 p.m. OK Java 8 TESTS 59 109 0 1700
30011103 coderbond007 C Sept. 2, 2017, 11:01 a.m. OK Java 8 TESTS 59 109 0 1700
19749757 Hazemzz C Aug. 9, 2016, 3:13 p.m. OK Java 8 TESTS 59 109 20480000 1700
23173991 joker_22 C Dec. 20, 2016, 9:49 a.m. OK Java 8 TESTS 59 109 20582400 1700
67569785 IbrahimYousre C Dec. 24, 2019, 9:16 p.m. OK Java 8 TESTS 59 124 0 1700
44437053 prashantpiyush C Oct. 17, 2018, 10:34 a.m. OK Java 8 TESTS 59 124 0 1700
39751889 Ahmed_Diab C June 28, 2018, 7:18 p.m. OK Java 8 TESTS 59 124 0 1700
22217897 Chubcheg C Nov. 15, 2016, 7:12 a.m. OK MS C# TESTS 59 93 2560000 1700
19100311 vjudge1 C July 14, 2016, 4 a.m. OK MS C++ TESTS 59 15 0 1700
19066107 vjudge2 C July 13, 2016, 7:12 a.m. OK MS C++ TESTS 59 15 0 1700
20812192 customer101 C Sept. 22, 2016, 7:55 a.m. OK MS C++ TESTS 59 15 102400 1700
25302772 GJA C March 6, 2017, 8:29 p.m. OK MS C++ TESTS 59 15 1945600 1700
17084749 khoarau C April 1, 2016, 4:41 a.m. OK MS C++ TESTS 59 15 2252800 1700
36083346 GMNY C March 8, 2018, 10:55 p.m. OK MS C++ TESTS 59 15 9113600 1700
30003582 Grigor01 C Sept. 2, 2017, 7:29 a.m. OK MS C++ TESTS 59 30 102400 1700
15847740 Red_Roses C Feb. 6, 2016, 6:45 p.m. OK MS C++ TESTS 59 30 16076800 1700
15847748 BRAD_BIT C Feb. 6, 2016, 6:46 p.m. OK MS C++ TESTS 59 30 16076800 1700
62050508 vjudge2 C Oct. 7, 2019, 9:18 a.m. OK MS C++ TESTS 59 31 0 1700
59904679 CtrlAlt C Sept. 2, 2019, 2:53 p.m. OK MS C++ 2017 TESTS 59 327 0 1700
61589341 darthVader1010 C Oct. 1, 2019, 6:23 a.m. OK MS C++ 2017 TESTS 59 857 102400 1700
21504081 chariot C Oct. 16, 2016, 6:16 p.m. OK PyPy 2 TESTS 59 78 21811200 1700
21501687 boombastic chan_chan_man chariot C Oct. 16, 2016, 4:24 p.m. OK PyPy 2 TESTS 59 78 21811200 1700
19067718 boombastic C July 13, 2016, 8:11 a.m. OK PyPy 2 TESTS 59 109 0 1700
27453105 Yash_ C May 30, 2017, 5:41 p.m. OK PyPy 3 TESTS 59 93 0 1700
17144999 ximo C April 3, 2016, 12:40 p.m. OK PyPy 3 TESTS 59 108 23244800 1700
67389669 Mr.Inconsistent C Dec. 21, 2019, 7:11 p.m. OK PyPy 3 TESTS 59 140 0 1700
68673072 lowoncode C Jan. 12, 2020, 5:29 p.m. OK PyPy 3 TESTS 59 155 0 1700
68306494 vjudge2 C Jan. 6, 2020, 9:12 a.m. OK PyPy 3 TESTS 59 156 0 1700
45678256 AmanGupta_ C Nov. 13, 2018, 2:08 p.m. OK PyPy 3 TESTS 59 1466 716800 1700
16024117 nishantarora C Feb. 14, 2016, 9 p.m. OK Python 2 TESTS 59 61 0 1700
18995258 vjudge5 C July 10, 2016, 4:49 a.m. OK Python 2 TESTS 59 62 0 1700
16202698 vjudge4 C Feb. 19, 2016, 2:47 p.m. OK Python 2 TESTS 59 62 0 1700
15980023 Gemy18 C Feb. 13, 2016, 12:08 a.m. OK Python 2 TESTS 59 62 0 1700
35140688 azala C Feb. 11, 2018, 1:51 a.m. OK Python 2 TESTS 59 62 4608000 1700
34490075 ahmedAbuamra C Jan. 23, 2018, 5:08 p.m. OK Python 2 TESTS 59 62 4608000 1700
23551027 BlueHazard_rony C Jan. 5, 2017, 8:50 a.m. OK Python 2 TESTS 59 62 4710400 1700
18373168 0xFED C June 11, 2016, 10:59 a.m. OK Python 2 TESTS 59 62 4812800 1700
21335492 demonsbane C Oct. 10, 2016, 10:21 a.m. OK Python 2 TESTS 59 77 4608000 1700
42845604 aapc_image C Sept. 13, 2018, 11:05 p.m. OK Python 2 TESTS 59 171 0 1700
13140901 vjudge5 C Sept. 22, 2015, 12:58 p.m. OK Python 3 TESTS 59 61 0 1700
32376805 Curtain C Nov. 17, 2017, 11:48 a.m. OK Python 3 TESTS 59 62 0 1700
32145963 ManexD C Nov. 8, 2017, 8:02 p.m. OK Python 3 TESTS 59 62 0 1700
32141390 ManexD C Nov. 8, 2017, 1:58 p.m. OK Python 3 TESTS 59 62 0 1700
22669427 Mr.Hitch C Dec. 3, 2016, 5:36 a.m. OK Python 3 TESTS 59 62 0 1700
22190305 invisal C Nov. 13, 2016, 9:50 a.m. OK Python 3 TESTS 59 62 0 1700
22090153 Amores C Nov. 7, 2016, 7:51 a.m. OK Python 3 TESTS 59 62 0 1700
29431102 rprtr258 C Aug. 13, 2017, 10:42 a.m. OK Python 3 TESTS 59 62 4608000 1700
17689561 lauer C May 2, 2016, 1:05 p.m. OK Python 3 TESTS 59 62 4915200 1700
18294646 emonnemo C June 8, 2016, 7:36 a.m. OK Python 3 TESTS 59 62 5120000 1700
17291182 reldan C April 12, 2016, 2:43 p.m. OK Scala TESTS 59 327 0 1700

remove filters

Back to search problems