Codeforces Round 263 (Div. 1)

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
461 Codeforces Round 263 (Div. 1) FINISHED False 7200 328377587 Aug. 26, 2014, 2 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 376 ) D Appleman and Complicated Task PROGRAMMING ds math 2700

B"Toastman came up with a very complicated task. He gives it to Appleman, but Appleman doesn't know how to solve it. Can you help him? Given a n xe2 x80 x89 xc3 x97 xe2 x80 x89n checkerboard. Each cell of the board has either character 'x', or character 'o', or nothing. How many ways to fill all the empty cells with 'x' or 'o' (each cell must contain only one character in the end) are there, such that for each cell the number of adjacent cells with 'o' will be even? Find the number of ways modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). Two cells of the board are adjacent if they share a side. The first line contains two integers n, k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the size of the board, and the number of cells that has characters initially. Then k lines follows. The i-th line contains two integers and a character: ai, bi, ci (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai, xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n; ci is either 'o' or 'x'). This line means: there is a character ci in the cell that is located on the intersection of the ai-th row and bi-th column. All the given cells are distinct. Consider that the rows are numbered from 1 to n from top to bottom. Analogically, the columns are numbered from 1 to n from left to right. Print a single integer -- the answer to the problem. In the first example there are two ways:"...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7595384 hos.lyric D Aug. 26, 2014, 3:55 p.m. OK D TESTS 70 108 8396800 2700
7817702 yubaby D Sept. 17, 2014, 12:25 p.m. OK FPC TESTS 70 61 921600 2700
40988073 ReaLNero1 D July 30, 2018, 9:43 p.m. OK GNU C++ TESTS 70 31 819200 2700
11724228 gerw D June 23, 2015, 2 p.m. OK GNU C++ TESTS 70 31 819200 2700
7805442 pwecar D Sept. 16, 2014, 1:52 a.m. OK GNU C++ TESTS 70 31 819200 2700
7807034 Philipsweng D Sept. 16, 2014, 8:04 a.m. OK GNU C++ TESTS 70 31 1228800 2700
9512092 ACMonster D Jan. 23, 2015, 11:06 a.m. OK GNU C++ TESTS 70 31 3584000 2700
26301163 ODT D April 11, 2017, 2:20 p.m. OK GNU C++ TESTS 70 31 3686400 2700
7593683 LayCurse D Aug. 26, 2014, 3:34 p.m. OK GNU C++ TESTS 70 31 3686400 2700
7669452 DXY D Sept. 2, 2014, 5:23 p.m. OK GNU C++ TESTS 70 46 819200 2700
7611814 zyeric D Aug. 28, 2014, 8:18 a.m. OK GNU C++ TESTS 70 46 819200 2700
7823677 jxt D Sept. 18, 2014, 7:37 a.m. OK GNU C++ TESTS 70 46 1536000 2700
7595170 betaveros D Aug. 26, 2014, 3:52 p.m. OK GNU C++0x TESTS 70 46 512000 2700
8893908 Shapo D Nov. 29, 2014, 8:57 p.m. OK GNU C++0x TESTS 70 46 2457600 2700
7625568 MinakoKojima D Aug. 30, 2014, 3:27 a.m. OK GNU C++0x TESTS 70 46 16076800 2700
7623845 MinakoKojima D Aug. 29, 2014, 6:48 p.m. OK GNU C++0x TESTS 70 61 7987200 2700
7724393 piob D Sept. 8, 2014, 9:21 p.m. OK GNU C++0x TESTS 70 62 819200 2700
7598206 kcm1700 D Aug. 26, 2014, 5:48 p.m. OK GNU C++0x TESTS 70 62 819200 2700
7610624 Chiba D Aug. 28, 2014, 4:35 a.m. OK GNU C++0x TESTS 70 62 1740800 2700
9358987 I_love_Hoang_Yen D Jan. 4, 2015, 10:15 a.m. OK GNU C++0x TESTS 70 62 3481600 2700
7913048 gustav D Sept. 22, 2014, 5:10 p.m. OK GNU C++0x TESTS 70 62 4096000 2700
9297238 haas D Dec. 29, 2014, 10:46 a.m. OK GNU C++0x TESTS 70 77 7884800 2700
20755105 wwyyxx D Sept. 19, 2016, 12:36 p.m. OK GNU C++11 TESTS 70 31 614400 2700
47806426 Mr_Spade D Jan. 1, 2019, 7:39 a.m. OK GNU C++11 TESTS 70 46 614400 2700
50669424 cly_none D March 2, 2019, 6:13 a.m. OK GNU C++11 TESTS 70 46 819200 2700
47805807 functionendless D Jan. 1, 2019, 7:05 a.m. OK GNU C++11 TESTS 70 46 1638400 2700
63232852 luogu_bot5 D Oct. 23, 2019, 11:30 a.m. OK GNU C++11 TESTS 70 46 2457600 2700
47901052 luogu_bot1 D Jan. 4, 2019, 2:10 p.m. OK GNU C++11 TESTS 70 46 11980800 2700
59817806 2016wudi D Aug. 31, 2019, 4:03 p.m. OK GNU C++11 TESTS 70 61 614400 2700
12159440 ainta D July 22, 2015, 6:48 a.m. OK GNU C++11 TESTS 70 61 716800 2700
47815620 tene3nt D Jan. 1, 2019, 2:12 p.m. OK GNU C++11 TESTS 70 62 819200 2700
12158782 conflict D July 22, 2015, 6:03 a.m. OK GNU C++11 TESTS 70 62 819200 2700
23524813 Ali.Pi D Jan. 3, 2017, 9:39 p.m. OK GNU C++14 TESTS 70 62 3891200 2700
67271726 ElangBondol D Dec. 20, 2019, 8:35 a.m. OK GNU C++14 TESTS 70 77 819200 2700
48105519 AprilGrimoire D Jan. 9, 2019, 4:25 a.m. OK GNU C++14 TESTS 70 77 1638400 2700
47806322 Deluxurous D Jan. 1, 2019, 7:34 a.m. OK GNU C++14 TESTS 70 77 3379200 2700
47805173 jhdjames37 D Jan. 1, 2019, 6:25 a.m. OK GNU C++14 TESTS 70 77 4812800 2700
47847725 SKT-T1_Faker D Jan. 2, 2019, 3:44 p.m. OK GNU C++14 TESTS 70 78 819200 2700
38580701 cyz666 D May 24, 2018, 8:37 a.m. OK GNU C++14 TESTS 70 78 819200 2700
53674016 kazuma D May 2, 2019, 2:44 p.m. OK GNU C++14 TESTS 70 78 1228800 2700
47805462 The_Unbeatable D Jan. 1, 2019, 6:45 a.m. OK GNU C++14 TESTS 70 78 2150400 2700
47846813 yzyyylx D Jan. 2, 2019, 3:10 p.m. OK GNU C++14 TESTS 70 78 3993600 2700
47804821 cxt D Jan. 1, 2019, 6:02 a.m. OK GNU C++17 TESTS 70 62 819200 2700
56730956 vjudge4 D July 9, 2019, 1:17 a.m. OK GNU C++17 TESTS 70 78 819200 2700
47806668 DOlaBMOon D Jan. 1, 2019, 7:51 a.m. OK GNU C++17 TESTS 70 78 1126400 2700
59974918 ruo D Sept. 4, 2019, 5:11 a.m. OK GNU C++17 TESTS 70 78 1638400 2700
46195370 Smaug D Nov. 25, 2018, 8:01 a.m. OK GNU C++17 TESTS 70 78 2867200 2700
49518856 vjudge4 D Feb. 6, 2019, 6:17 a.m. OK GNU C++17 TESTS 70 78 3072000 2700
66028181 hjk1030 D Nov. 30, 2019, 9:18 a.m. OK GNU C++17 TESTS 70 93 819200 2700
47805757 Dance_Of_Faith D Jan. 1, 2019, 7:02 a.m. OK GNU C++17 TESTS 70 93 6348800 2700
66601812 AlexLuchianov D Dec. 10, 2019, 4:49 p.m. OK GNU C++17 TESTS 70 93 7680000 2700
47807160 Chuzyh D Jan. 1, 2019, 8:18 a.m. OK GNU C++17 TESTS 70 93 7987200 2700
7657135 vjudge4 D Aug. 31, 2014, 8:50 p.m. OK Java 6 TESTS 70 109 102400 2700
8518669 silentknight D Nov. 1, 2014, 11:19 p.m. OK Java 7 TESTS 70 93 102400 2700
7625765 dnk D Aug. 30, 2014, 4:26 a.m. OK Java 7 TESTS 70 124 0 2700
7594270 pashka D Aug. 26, 2014, 3:41 p.m. OK Java 7 TESTS 70 140 614400 2700
11716091 Pimpom D June 23, 2015, 1:07 a.m. OK Java 8 TESTS 70 139 0 2700
11716105 old_arysson D June 23, 2015, 1:10 a.m. OK Java 8 TESTS 70 140 0 2700
7592753 Egor D Aug. 26, 2014, 3:23 p.m. OK Java 8 TESTS 70 265 2457600 2700
7619243 Nero D Aug. 29, 2014, 7:56 a.m. OK Java 8 TESTS 70 732 4915200 2700
39019421 camypaper D June 7, 2018, 12:05 p.m. OK Mono C# TESTS 70 93 4096000 2700
7613694 gxnncrx1993 D Aug. 28, 2014, 12:24 p.m. OK MS C++ TESTS 70 46 921600 2700
10641971 dotorya D April 9, 2015, 4:19 p.m. OK MS C++ TESTS 70 46 4403200 2700
7599788 mjy0503 D Aug. 26, 2014, 9:02 p.m. OK MS C++ TESTS 70 62 819200 2700
19193178 DEGwer D July 17, 2016, 4:22 p.m. OK MS C++ TESTS 70 62 5529600 2700
7594433 sdya D Aug. 26, 2014, 3:43 p.m. OK MS C++ TESTS 70 93 7577600 2700
7652115 Megalitum D Aug. 31, 2014, 8:39 a.m. OK MS C++ TESTS 70 187 819200 2700
7651249 nwi D Aug. 31, 2014, 6:34 a.m. OK Python 2 TESTS 70 826 3788800 2700

remove filters

Back to search problems