Codeforces Round 181 (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
300 Codeforces Round 181 (Div. 2) FINISHED False 7200 370794597 April 25, 2013, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 760 ) D Painting Square PROGRAMMING dp fft 2700

B'Vasily the bear has got a large square white table of n rows and n columns. The table has got a black border around this table. Vasily the bear wants to paint his square table in exactly k moves. Each move is sequence of actions: The bear already knows numbers n and k. Help him -- find the number of ways to paint the square in exactly k moves. Two ways to paint are called distinct if the resulting tables will differ in at least one cell. As the answer can be rather large, print the remainder after dividing it by 7340033. The first line contains integer q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of test data. Each of the following q lines contains two integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- the size of the initial table and the number of moves for the corresponding test. For each test from the input print the answer to the problem modulo 7340033. Print the answers to the tests in the order in which the tests are given in the input. All possible painting ways for the test n xe2 x80 x89= xe2 x80 x897 and k xe2 x80 x89= xe2 x80 x892 are:'...

Tutorials

English Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4034110 PeterTong97 D July 7, 2013, 9:42 a.m. OK FPC TESTS 3 468 409600 2700
3629113 Timur_Keks D April 25, 2013, 5:27 p.m. OK FPC TESTS 3 484 409600 2700
3702787 chipchip3412 D May 11, 2013, 2:56 p.m. OK FPC TESTS 3 890 307200 2700
10405774 403369233 D March 23, 2015, 1:18 a.m. OK FPC TESTS 3 934 716800 2700
3629968 hiepsieunhan D April 25, 2013, 6:06 p.m. OK FPC TESTS 3 1343 512000 2700
3669629 janko96 D May 4, 2013, 3:32 p.m. OK FPC TESTS 3 1435 512000 2700
3626716 con_nha_ngheo D April 25, 2013, 4:42 p.m. OK FPC TESTS 3 2218 409600 2700
3648350 ig_dug D April 28, 2013, 2:11 p.m. OK FPC TESTS 3 2375 512000 2700
3759369 idemura D May 23, 2013, 5:29 a.m. OK GNU C TESTS 3 1265 1024000 2700
3629496 kawatea D April 25, 2013, 5:47 p.m. OK GNU C TESTS 3 1687 307200 2700
23921952 CuSO45H2O D Jan. 18, 2017, 12:43 p.m. OK GNU C++ TESTS 3 62 2764800 2700
23921811 CuSO45H2O D Jan. 18, 2017, 12:37 p.m. OK GNU C++ TESTS 3 62 19353600 2700
14635895 Owaski D Dec. 3, 2015, 3:26 p.m. OK GNU C++ TESTS 3 92 102400 2700
15984957 PPFish D Feb. 13, 2016, 9:41 a.m. OK GNU C++ TESTS 3 92 204800 2700
27702473 vjudge2 D June 10, 2017, 8:24 a.m. OK GNU C++ TESTS 3 92 409600 2700
27702470 ShinriiTin D June 10, 2017, 8:24 a.m. OK GNU C++ TESTS 3 92 409600 2700
40989949 ReaLNero1 D July 30, 2018, 11:26 p.m. OK GNU C++ TESTS 3 92 716800 2700
40760174 Scut82 D July 26, 2018, 2:54 a.m. OK GNU C++ TESTS 3 92 716800 2700
26650701 unicornt D April 25, 2017, 12:31 a.m. OK GNU C++ TESTS 3 92 2662400 2700
23534336 phantomI D Jan. 4, 2017, 11:37 a.m. OK GNU C++ TESTS 3 92 2764800 2700
3634495 hex539 D April 26, 2013, 8:12 a.m. OK GNU C++0x TESTS 3 140 1024000 2700
3634485 hex539 D April 26, 2013, 8:10 a.m. OK GNU C++0x TESTS 3 140 1331200 2700
3659203 watashi D May 2, 2013, 6:32 a.m. OK GNU C++0x TESTS 3 156 204800 2700
3635064 hex539 D April 26, 2013, 10:35 a.m. OK GNU C++0x TESTS 3 156 1024000 2700
10227519 johnasselta D March 10, 2015, 2:34 p.m. OK GNU C++0x TESTS 3 186 204800 2700
8074714 JayYe D Oct. 4, 2014, 6:23 a.m. OK GNU C++0x TESTS 3 186 204800 2700
8074634 JayYe D Oct. 4, 2014, 6:10 a.m. OK GNU C++0x TESTS 3 186 204800 2700
7731763 arthur.nascimento D Sept. 10, 2014, 12:52 a.m. OK GNU C++0x TESTS 3 186 1433600 2700
10227275 johnasselta D March 10, 2015, 2:08 p.m. OK GNU C++0x TESTS 3 216 102400 2700
3650650 problem-solved D April 29, 2013, 9:01 a.m. OK GNU C++0x TESTS 3 218 307200 2700
55179080 rainboy D June 5, 2019, 8:21 p.m. OK GNU C11 TESTS 3 748 102400 2700
15984892 PPFish D Feb. 13, 2016, 9:36 a.m. OK GNU C++11 TESTS 3 92 307200 2700
66549757 autoint D Dec. 9, 2019, 2:26 p.m. OK GNU C++11 TESTS 3 92 512000 2700
35873234 j31234 D March 3, 2018, 7:27 a.m. OK GNU C++11 TESTS 3 92 2867200 2700
65538669 JCC_ D Nov. 22, 2019, 3:10 p.m. OK GNU C++11 TESTS 3 92 6041600 2700
61472091 ILoLy D Sept. 29, 2019, 12:45 p.m. OK GNU C++11 TESTS 3 92 6041600 2700
15984924 PPFish D Feb. 13, 2016, 9:38 a.m. OK GNU C++11 TESTS 3 122 204800 2700
68936777 liuweih D Jan. 16, 2020, 1:06 p.m. OK GNU C++11 TESTS 3 124 307200 2700
27699450 vjudge5 D June 10, 2017, 3:37 a.m. OK GNU C++11 TESTS 3 124 307200 2700
50413264 luogu_bot5 D Feb. 24, 2019, 4:46 a.m. OK GNU C++11 TESTS 3 124 1331200 2700
33402407 Sunshine_cfbsl D Dec. 19, 2017, 9:02 a.m. OK GNU C++11 TESTS 3 124 2560000 2700
55179094 rainboy D June 5, 2019, 8:22 p.m. OK GNU C++14 TESTS 3 154 102400 2700
46732757 toothbrush D Dec. 7, 2018, 6:17 p.m. OK GNU C++14 TESTS 3 154 409600 2700
45274782 vjudge1 D Nov. 4, 2018, 10:28 a.m. OK GNU C++14 TESTS 3 154 1024000 2700
25369688 YakutovDmitriy D March 9, 2017, 10:09 p.m. OK GNU C++14 TESTS 3 154 10137600 2700
43928149 Shayan.P D Oct. 7, 2018, 6:04 a.m. OK GNU C++14 TESTS 3 156 204800 2700
28781666 fengsuiyan D July 22, 2017, 3:05 p.m. OK GNU C++14 TESTS 3 156 2457600 2700
37352127 Im_too_old_for_this_shit D April 15, 2018, 11:43 a.m. OK GNU C++14 TESTS 3 156 3686400 2700
63992608 tbzard D Nov. 1, 2019, 1:36 p.m. OK GNU C++14 TESTS 3 186 307200 2700
62406801 6aren D Oct. 12, 2019, 9:13 a.m. OK GNU C++14 TESTS 3 186 512000 2700
35793535 bigcrunch D Feb. 28, 2018, 6:25 p.m. OK GNU C++14 TESTS 3 186 2355200 2700
47285780 Trisolaris D Dec. 20, 2018, 6:05 a.m. OK GNU C++17 TESTS 3 62 716800 2700
65614878 kangel_sama D Nov. 24, 2019, 2:46 a.m. OK GNU C++17 TESTS 3 62 716800 2700
65614757 kangel_sama D Nov. 24, 2019, 2:40 a.m. OK GNU C++17 TESTS 3 62 716800 2700
47285792 Trisolaris D Dec. 20, 2018, 6:05 a.m. OK GNU C++17 TESTS 3 62 716800 2700
47285761 Trisolaris D Dec. 20, 2018, 6:04 a.m. OK GNU C++17 TESTS 3 92 614400 2700
65615220 kangel_sama D Nov. 24, 2019, 3:02 a.m. OK GNU C++17 TESTS 3 92 716800 2700
65614848 kangel_sama D Nov. 24, 2019, 2:45 a.m. OK GNU C++17 TESTS 3 92 716800 2700
65614778 kangel_sama D Nov. 24, 2019, 2:41 a.m. OK GNU C++17 TESTS 3 92 716800 2700
65551847 kangel_sama D Nov. 22, 2019, 7:19 p.m. OK GNU C++17 TESTS 3 92 716800 2700
65614867 kangel_sama D Nov. 24, 2019, 2:45 a.m. OK GNU C++17 TESTS 3 122 716800 2700
3627547 uwi D April 25, 2013, 4:58 p.m. OK Java 6 TESTS 3 578 204800 2700
3718604 aste D May 14, 2013, 1:01 a.m. OK Java 6 TESTS 3 1453 307200 2700
3634003 tyuan73 D April 26, 2013, 5:51 a.m. OK Java 6 TESTS 3 1453 307200 2700
3633896 tyuan73 D April 26, 2013, 5:12 a.m. OK Java 6 TESTS 3 2390 409600 2700
3629623 mmaxio D April 25, 2013, 5:52 p.m. OK Java 7 TESTS 3 1000 0 2700
3645768 rantd D April 28, 2013, 5:15 a.m. OK Java 7 TESTS 3 1515 102400 2700
3667759 sweiss D May 4, 2013, 9:43 a.m. OK Java 7 TESTS 3 2062 102400 2700
7041753 owenomar D July 7, 2014, 3:12 p.m. OK Java 7 TESTS 3 2182 102400 2700
3935706 Ahmed_Salama D June 22, 2013, 1:11 p.m. OK Java 7 TESTS 3 2281 0 2700
3658578 mostafa_fahim D May 1, 2013, 5:03 p.m. OK Java 7 TESTS 3 2375 0 2700
3727176 shimomire D May 16, 2013, 1:28 p.m. OK Java 7 TESTS 3 2437 204800 2700
3628368 Thomas_Ahle D April 25, 2013, 5:14 p.m. OK Java 7 TESTS 3 2527 0 2700
10063338 edorundo D Feb. 28, 2015, 11:50 a.m. OK Java 7 TESTS 3 2650 0 2700
55179081 Dukkha D June 5, 2019, 8:21 p.m. OK Java 8 TESTS 3 374 0 2700
7257787 IgorKoval D July 27, 2014, 2:16 p.m. OK Java 8 TESTS 3 902 1433600 2700
7257759 IgorKoval D July 27, 2014, 2:11 p.m. OK Java 8 TESTS 3 964 1740800 2700
7257777 IgorKoval D July 27, 2014, 2:15 p.m. OK Java 8 TESTS 3 966 1740800 2700
7257421 IgorKoval D July 27, 2014, 1:06 p.m. OK Java 8 TESTS 3 1058 1843200 2700
8977750 KOHCTAHTIH D Dec. 4, 2014, 6:52 a.m. OK Java 8 TESTS 3 1152 1843200 2700
7257407 IgorKoval D July 27, 2014, 1:04 p.m. OK Java 8 TESTS 3 1308 3379200 2700
7257409 IgorKoval D July 27, 2014, 1:04 p.m. OK Java 8 TESTS 3 1340 3379200 2700
8977506 KOHCTAHTIH D Dec. 4, 2014, 6:23 a.m. OK Java 8 TESTS 3 1434 2662400 2700
7253228 IgorKoval D July 27, 2014, 12:53 a.m. OK Java 8 TESTS 3 1496 3481600 2700
4619747 antofik D Oct. 1, 2013, 11:56 a.m. OK Mono C# TESTS 3 1248 5222400 2700
4619739 antofik D Oct. 1, 2013, 11:56 a.m. OK MS C# TESTS 3 1154 5222400 2700
4619845 antofik D Oct. 1, 2013, 12:09 p.m. OK MS C# TESTS 3 1154 5222400 2700
5961760 AleksanderBalobanov D March 8, 2014, 9:42 a.m. OK MS C++ TESTS 3 216 307200 2700
3634561 Kazim D April 26, 2013, 8:28 a.m. OK MS C++ TESTS 3 312 307200 2700
3636756 hgame D April 26, 2013, 3:38 p.m. OK MS C++ TESTS 3 484 307200 2700
3630807 Monyura D April 25, 2013, 7:52 p.m. OK MS C++ TESTS 3 578 512000 2700
3650258 ACTheory D April 29, 2013, 7:03 a.m. OK MS C++ TESTS 3 796 512000 2700
6262568 Elun D April 5, 2014, 7:23 a.m. OK MS C++ TESTS 3 904 204800 2700
3671725 ChoiceZ D May 5, 2013, 8:24 a.m. OK MS C++ TESTS 3 1093 102400 2700
4275373 tatsy D Aug. 14, 2013, 2:04 a.m. OK MS C++ TESTS 3 1216 102400 2700
4831467 lzsb D Oct. 20, 2013, 5:40 a.m. OK MS C++ TESTS 3 1278 204800 2700
3629989 dragoon D April 25, 2013, 6:08 p.m. OK MS C++ TESTS 3 1419 1024000 2700

remove filters

Back to search problems