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

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1713 ) B Nice table PROGRAMMING brute force constructive algorithms greedy math 2300

B"You are given an n x m table, consisting of characters xc2 xabA xc2 xbb, xc2 xabG xc2 xbb, xc2 xabC xc2 xbb, xc2 xabT xc2 xbb. Let's call a table nice, if every 2 x 2 square contains all four distinct characters. Your task is to find a nice table (also consisting of xc2 xabA xc2 xbb, xc2 xabG xc2 xbb, xc2 xabC xc2 xbb, xc2 xabT xc2 xbb), that differs from the given table in the minimum number of characters. First line contains two positive integers n and m -- number of rows and columns in the table you are given ( 2 <= q n, m, n x m <= q 300 ,000 ). Then, n lines describing the table follow. Each line contains exactly m characters xc2 xabA xc2 xbb, xc2 xabG xc2 xbb, xc2 xabC xc2 xbb, xc2 xabT xc2 xbb. Output n lines, m characters each. This table must be nice and differ from the input table in the minimum number of characters. In the first sample, the table is already nice. In the second sample, you can change 9 elements to make the table nice. "...

Tutorials

64331

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51901574 Lucina B March 27, 2019, 1:42 p.m. OK Clang++17 Diagnostics TESTS 61 390 4300800 2300
48004055 hos.lyric B Jan. 5, 2019, 6:21 p.m. OK D TESTS 61 966 36454400 2300
48054491 LeoPro B Jan. 7, 2019, 11:26 a.m. OK FPC TESTS 61 109 35942400 2300
48009197 rainboy B Jan. 5, 2019, 6:53 p.m. OK GNU C11 TESTS 61 78 24883200 2300
47998051 huhaoo B Jan. 5, 2019, 5:50 p.m. OK GNU C++11 TESTS 61 46 409600 2300
48313390 huhaoo B Jan. 13, 2019, 4:40 a.m. OK GNU C++11 TESTS 61 46 409600 2300
55824925 A.K.E.E. B June 20, 2019, 10:23 a.m. OK GNU C++11 TESTS 61 46 3891200 2300
48007277 dragonslayerintraining B Jan. 5, 2019, 6:40 p.m. OK GNU C++11 TESTS 61 46 24166400 2300
47988313 JOHNKRAM B Jan. 5, 2019, 5:12 p.m. OK GNU C++11 TESTS 61 46 41472000 2300
54645898 SoiMae B May 26, 2019, 12:20 a.m. OK GNU C++11 TESTS 61 61 1536000 2300
50740775 Tiger3018 B March 3, 2019, 3:20 p.m. OK GNU C++11 TESTS 61 62 716800 2300
50740689 Tiger3018 B March 3, 2019, 3:18 p.m. OK GNU C++11 TESTS 61 62 716800 2300
47998167 icerain94 B Jan. 5, 2019, 5:50 p.m. OK GNU C++11 TESTS 61 62 716800 2300
50740806 Tiger3018 B March 3, 2019, 3:22 p.m. OK GNU C++11 TESTS 61 62 716800 2300
49725497 krijgertje B Feb. 10, 2019, 3:41 p.m. OK GNU C++14 TESTS 61 46 921600 2300
48567087 alechuang98 B Jan. 19, 2019, 10:08 a.m. OK GNU C++14 TESTS 61 46 7884800 2300
47993841 cescmentation_folch B Jan. 5, 2019, 5:32 p.m. OK GNU C++14 TESTS 61 46 19558400 2300
48654356 ReaLNero1 B Jan. 21, 2019, 1:30 a.m. OK GNU C++14 TESTS 61 46 19558400 2300
48018947 ImForbiddenToSayILoveYou B Jan. 6, 2019, 3:24 a.m. OK GNU C++14 TESTS 61 61 4096000 2300
48003508 Mucosolvan B Jan. 5, 2019, 6:18 p.m. OK GNU C++14 TESTS 61 61 8089600 2300
48071638 AlanWaP B Jan. 8, 2019, 12:20 a.m. OK GNU C++14 TESTS 61 61 15360000 2300
47989333 Farhod_Farmon B Jan. 5, 2019, 5:15 p.m. OK GNU C++14 TESTS 61 61 24883200 2300
48005247 summitwei B Jan. 5, 2019, 6:28 p.m. OK GNU C++14 TESTS 61 61 30310400 2300
48918802 Prime21 B Jan. 25, 2019, 6:45 a.m. OK GNU C++14 TESTS 61 62 921600 2300
48069809 IaMar B Jan. 7, 2019, 9:07 p.m. OK GNU C++17 TESTS 61 46 1024000 2300
48075518 Smaug B Jan. 8, 2019, 4:13 a.m. OK GNU C++17 TESTS 61 46 1024000 2300
68347704 yorky B Jan. 7, 2020, 8:12 a.m. OK GNU C++17 TESTS 61 46 3584000 2300
51414003 Maksim1744 B March 17, 2019, 1:14 p.m. OK GNU C++17 TESTS 61 46 11468800 2300
49181998 vjudge5 B Jan. 30, 2019, 2:39 a.m. OK GNU C++17 TESTS 61 46 41472000 2300
59907233 OrlandoIsay B Sept. 2, 2019, 3:51 p.m. OK GNU C++17 TESTS 61 61 3891200 2300
48008126 teapotd B Jan. 5, 2019, 6:46 p.m. OK GNU C++17 TESTS 61 61 7168000 2300
47994041 MaxZubec B Jan. 5, 2019, 5:32 p.m. OK GNU C++17 TESTS 61 61 27955200 2300
64637436 S.K B Nov. 10, 2019, noon OK GNU C++17 TESTS 61 62 614400 2300
47990594 karasek B Jan. 5, 2019, 5:20 p.m. OK GNU C++17 TESTS 61 62 3584000 2300
48010449 Intrincantation B Jan. 5, 2019, 7 p.m. OK Java 8 TESTS 61 186 0 2300
50056535 JNUzzh B Feb. 17, 2019, 10:37 a.m. OK Java 8 TESTS 61 186 3072000 2300
48008225 mikit B Jan. 5, 2019, 6:46 p.m. OK Java 8 TESTS 61 186 3788800 2300
47986882 mmaxio B Jan. 5, 2019, 5:07 p.m. OK Java 8 TESTS 61 202 0 2300
48004493 Dukkha B Jan. 5, 2019, 6:24 p.m. OK Java 8 TESTS 61 202 4198400 2300
48027414 qwerty787788 B Jan. 6, 2019, 10 a.m. OK Java 8 TESTS 61 202 5939200 2300
47983074 Petr B Jan. 5, 2019, 4:57 p.m. OK Java 8 TESTS 61 218 1331200 2300
48069717 wadissimo B Jan. 7, 2019, 9:01 p.m. OK Java 8 TESTS 61 233 0 2300
48005278 poikniok B Jan. 5, 2019, 6:28 p.m. OK Java 8 TESTS 61 249 5120000 2300
49683890 travm1100 B Feb. 10, 2019, 5:35 a.m. OK Java 8 TESTS 61 264 0 2300
47990936 riantkb B Jan. 5, 2019, 5:21 p.m. OK Mono C# TESTS 61 280 40550400 2300
47990839 chokudai B Jan. 5, 2019, 5:21 p.m. OK Mono C# TESTS 61 608 15769600 2300
47988576 LoneFox B Jan. 5, 2019, 5:13 p.m. OK MS C++ TESTS 61 311 24371200 2300
52070668 hld67890 B March 31, 2019, 7:39 a.m. OK MS C++ 2017 TESTS 61 109 921600 2300
54864859 whatshisbucket B May 31, 2019, 5:27 a.m. OK PyPy 2 TESTS 61 404 39833600 2300
48009233 pajenegod B Jan. 5, 2019, 6:53 p.m. OK PyPy 2 TESTS 61 592 49868800 2300
48063140 Bovniova B Jan. 7, 2019, 4:31 p.m. OK PyPy 3 TESTS 61 436 29491200 2300
48063313 Bovniova B Jan. 7, 2019, 4:38 p.m. OK PyPy 3 TESTS 61 467 29593600 2300
48062975 Bovniova B Jan. 7, 2019, 4:26 p.m. OK PyPy 3 TESTS 61 467 30003200 2300
47995457 alpha_virginis B Jan. 5, 2019, 5:38 p.m. OK Rust TESTS 61 155 28876800 2300

remove filters

Back to search problems