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 |
1368
|
Codeforces Global Round 8 |
FINISHED |
False |
9000 |
139331699 |
June 18, 2020, 2:45 p.m. |
Problems
B'Leo Jr. draws pictures in his notebook with checkered sheets (that is, each sheet has a regular square grid printed on it). We can assume that the sheets are infinitely large in any direction. To draw a picture, Leo Jr. colors some of the cells on a sheet gray. He considers the resulting picture beautiful if the following conditions are satisfied: Leo Jr. is now struggling to draw a beautiful picture with a particular choice of n . Help him, and provide any example of a beautiful picture. To output cell coordinates in your answer, assume that the sheet is provided with a Cartesian coordinate system such that one of the cells is chosen to be the origin (0, 0) , axes 0x and 0y are orthogonal and parallel to grid lines, and a unit step along any axis in any direction takes you to a neighbouring cell. The only line contains a single integer n ( 1 <= q n <= q 500 ) -- the number of gray cells with all gray neighbours in a beautiful picture. In the first line, print a single integer k -- the number of gray cells in your picture. For technical reasons, k should not exceed 5 cdot 10^5 . Each of the following k lines should contain two integers -- coordinates of a gray cell in your picture. All listed cells should be distinct, and the picture should satisdfy all the properties listed above. All coordinates should not exceed 10^9 by absolute value. One can show that there exists an answer satisfying all requirements with a small enough k . The answer for the sample is pictured below: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
84219376 |
anujsinghal |
C |
June 18, 2020, 3:48 p.m. |
OK |
GNU C11 |
TESTS |
30 |
31 |
0 |
|
|
84245310 |
JoseTomas01 |
C |
June 18, 2020, 4:45 p.m. |
OK |
GNU C11 |
TESTS |
30 |
31 |
0 |
|
|
84232092 |
CaptainShammer |
C |
June 18, 2020, 4:14 p.m. |
OK |
GNU C11 |
TESTS |
30 |
31 |
0 |
|
|
84239321 |
mrashid_5919 |
C |
June 18, 2020, 4:30 p.m. |
OK |
GNU C11 |
TESTS |
30 |
31 |
307200 |
|
|
84242985 |
chainmail |
C |
June 18, 2020, 4:39 p.m. |
OK |
GNU C11 |
TESTS |
30 |
31 |
307200 |
|
|
84256009 |
pranav_k_m |
C |
June 18, 2020, 5:09 p.m. |
OK |
GNU C11 |
TESTS |
30 |
46 |
0 |
|
|
84272680 |
sharad12arse |
C |
June 18, 2020, 7:55 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
15 |
0 |
|
|
84234959 |
milaXD |
C |
June 18, 2020, 4:20 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
15 |
0 |
|
|
84246588 |
Acmer_jibao |
C |
June 18, 2020, 4:48 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
15 |
409600 |
|
|
84293843 |
lin_rany |
C |
June 19, 2020, 5:44 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
15 |
16076800 |
|
|
84261061 |
Rahimmia |
C |
June 18, 2020, 5:57 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84249014 |
sdxjzsq |
C |
June 18, 2020, 4:54 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84241986 |
aryanjunagade |
C |
June 18, 2020, 4:36 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84238540 |
sarusama |
C |
June 18, 2020, 4:28 p.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84291709 |
day_dream |
C |
June 19, 2020, 5:08 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84285014 |
key.L |
C |
June 19, 2020, 2:41 a.m. |
OK |
GNU C++11 |
TESTS |
30 |
30 |
0 |
|
|
84243242 |
ardh1999 |
C |
June 18, 2020, 4:39 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84242012 |
bork |
C |
June 18, 2020, 4:36 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84241444 |
taira_capeta |
C |
June 18, 2020, 4:35 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84241382 |
sr4saurabh |
C |
June 18, 2020, 4:35 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84252062 |
skywalker_ |
C |
June 18, 2020, 5:01 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84273750 |
akshit |
C |
June 18, 2020, 8:15 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84291618 |
Ankit_12 |
C |
June 19, 2020, 5:07 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84294717 |
skywalker__ |
C |
June 19, 2020, 6:05 a.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84250822 |
mithunreddy |
C |
June 18, 2020, 4:58 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84250144 |
piyush14298 |
C |
June 18, 2020, 4:56 p.m. |
OK |
GNU C++14 |
TESTS |
30 |
30 |
0 |
|
|
84287133 |
shettypriyesh |
C |
June 19, 2020, 3:36 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84288792 |
shreyas.mandade |
C |
June 19, 2020, 4:10 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84286662 |
ankeet |
C |
June 19, 2020, 3:25 a.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84277736 |
alekhgupta1441 |
C |
June 18, 2020, 9:48 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84274038 |
sandeep_kumar_e |
C |
June 18, 2020, 8:21 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84271756 |
Dark_Lord_ |
C |
June 18, 2020, 7:39 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84267624 |
No_1one |
C |
June 18, 2020, 6:39 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84245192 |
skystar1314 |
C |
June 18, 2020, 4:44 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84244693 |
TITANOBOXER |
C |
June 18, 2020, 4:43 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84243673 |
salehsargolzaee |
C |
June 18, 2020, 4:40 p.m. |
OK |
GNU C++17 |
TESTS |
30 |
30 |
0 |
|
|
84272171 |
Arnab_Bhattacharjee |
C |
June 18, 2020, 7:46 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
15 |
0 |
|
|
84261077 |
alif_cse_ju |
C |
June 18, 2020, 5:57 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
15 |
0 |
|
|
84223287 |
Atesla00 |
C |
June 18, 2020, 3:56 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
15 |
0 |
|
|
84283082 |
Infuse |
C |
June 19, 2020, 1:36 a.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
15 |
102400 |
|
|
84254152 |
rky673 |
C |
June 18, 2020, 5:05 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
15 |
1024000 |
|
|
84268448 |
conquizztador |
C |
June 18, 2020, 6:49 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
30 |
0 |
|
|
84281912 |
WZYYN |
C |
June 19, 2020, 12:44 a.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
30 |
0 |
|
|
84261628 |
vok8 |
C |
June 18, 2020, 6:01 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
30 |
0 |
|
|
84266718 |
neal |
C |
June 18, 2020, 6:33 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
30 |
0 |
|
|
84267982 |
eR6 |
C |
June 18, 2020, 6:43 p.m. |
OK |
GNU C++17 (64) |
TESTS |
30 |
30 |
0 |
|
|
84294602 |
ankurkandi97 |
C |
June 19, 2020, 6:03 a.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84277821 |
AshrafEzz |
C |
June 18, 2020, 9:51 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84276605 |
wabadabakalakaboo |
C |
June 18, 2020, 9:18 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84274698 |
R3KT |
C |
June 18, 2020, 8:34 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84271403 |
Piccadilly |
C |
June 18, 2020, 7:33 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84271034 |
saikaushik |
C |
June 18, 2020, 7:27 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84269130 |
tirtho2107 |
C |
June 18, 2020, 6:58 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84252922 |
yuruiyin |
C |
June 18, 2020, 5:03 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84252182 |
egaeus.code |
C |
June 18, 2020, 5:01 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84250707 |
Ruslan_Rud |
C |
June 18, 2020, 4:57 p.m. |
OK |
Java 11 |
TESTS |
30 |
202 |
0 |
|
|
84235281 |
aranjuda |
C |
June 18, 2020, 4:21 p.m. |
OK |
Java 8 |
TESTS |
30 |
108 |
0 |
|
|
84274145 |
Mohammad_Abohasan |
C |
June 18, 2020, 8:23 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84285272 |
ShesMyNerd |
C |
June 19, 2020, 2:48 a.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84284921 |
ashraybharambe |
C |
June 19, 2020, 2:37 a.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84277739 |
AhmedZ |
C |
June 18, 2020, 9:48 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84274107 |
nidhigoel |
C |
June 18, 2020, 8:22 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84267810 |
neeraj96 |
C |
June 18, 2020, 6:41 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84267555 |
dhaNiN |
C |
June 18, 2020, 6:39 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84262046 |
nandit |
C |
June 18, 2020, 6:04 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84249141 |
harshitContest |
C |
June 18, 2020, 4:54 p.m. |
OK |
Java 8 |
TESTS |
30 |
109 |
0 |
|
|
84268206 |
Hakiobo |
C |
June 18, 2020, 6:46 p.m. |
OK |
Kotlin |
TESTS |
30 |
109 |
0 |
|
|
84241959 |
mr.varga |
C |
June 18, 2020, 4:36 p.m. |
OK |
Kotlin |
TESTS |
30 |
140 |
0 |
|
|
84227394 |
PussyKiller |
C |
June 18, 2020, 4:04 p.m. |
OK |
Kotlin |
TESTS |
30 |
171 |
102400 |
|
|
84231875 |
wbars |
C |
June 18, 2020, 4:14 p.m. |
OK |
Kotlin |
TESTS |
30 |
187 |
2048000 |
|
|
84235856 |
abdukodir |
C |
June 18, 2020, 4:22 p.m. |
OK |
Kotlin |
TESTS |
30 |
187 |
8396800 |
|
|
84224495 |
Kolyanich |
C |
June 18, 2020, 3:58 p.m. |
OK |
Mono C# |
TESTS |
30 |
62 |
102400 |
|
|
84250941 |
DICENube |
C |
June 18, 2020, 4:58 p.m. |
OK |
Mono C# |
TESTS |
30 |
62 |
204800 |
|
|
84227603 |
_Trung_Nguyen |
C |
June 18, 2020, 4:05 p.m. |
OK |
Mono C# |
TESTS |
30 |
77 |
204800 |
|
|
84250026 |
Khazmadu |
C |
June 18, 2020, 4:56 p.m. |
OK |
Mono C# |
TESTS |
30 |
77 |
3891200 |
|
|
84269186 |
TRR |
C |
June 18, 2020, 6:58 p.m. |
OK |
Mono C# |
TESTS |
30 |
78 |
102400 |
|
|
84221309 |
mban259 |
C |
June 18, 2020, 3:52 p.m. |
OK |
Mono C# |
TESTS |
30 |
78 |
409600 |
|
|
84233111 |
Backs |
C |
June 18, 2020, 4:16 p.m. |
OK |
Mono C# |
TESTS |
30 |
93 |
4096000 |
|
|
84228764 |
reikiriyama |
C |
June 18, 2020, 4:07 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84280519 |
FireBird7 |
C |
June 18, 2020, 11:42 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84269771 |
xsc |
C |
June 18, 2020, 7:07 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84257834 |
psn2706 |
C |
June 18, 2020, 5:12 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84251178 |
s9174975022 |
C |
June 18, 2020, 4:59 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84244803 |
Awerar |
C |
June 18, 2020, 4:43 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84239258 |
YaMi506 |
C |
June 18, 2020, 4:30 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84236712 |
dbsthdud918 |
C |
June 18, 2020, 4:24 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84228867 |
_Ani |
C |
June 18, 2020, 4:07 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84227017 |
Tuenjuko |
C |
June 18, 2020, 4:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
30 |
31 |
0 |
|
|
84249311 |
PAG |
C |
June 18, 2020, 4:54 p.m. |
OK |
PascalABC.NET |
TESTS |
30 |
405 |
102400 |
|
|
84229857 |
realnimish |
C |
June 18, 2020, 4:10 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
140 |
0 |
|
|
84225282 |
shehebe |
C |
June 18, 2020, 4 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
140 |
1331200 |
|
|
84224349 |
Mukundan314 |
C |
June 18, 2020, 3:58 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
155 |
204800 |
|
|
84221939 |
wolffd |
C |
June 18, 2020, 3:53 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
155 |
614400 |
|
|
84278868 |
MiFaFaOvO |
C |
June 18, 2020, 10:25 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
156 |
1740800 |
|
|
84229465 |
chris-md |
C |
June 18, 2020, 4:09 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
171 |
1331200 |
|
|
84232521 |
starkizard |
C |
June 18, 2020, 4:15 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
171 |
2150400 |
|
|
84227450 |
Satwik_Tiwari |
C |
June 18, 2020, 4:04 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
265 |
8294400 |
|
|
84228084 |
beethoven97 |
C |
June 18, 2020, 4:06 p.m. |
OK |
PyPy 2 |
TESTS |
30 |
280 |
7987200 |
|
|
84246374 |
yusinv |
C |
June 18, 2020, 4:47 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
140 |
2150400 |
|
|
84293959 |
pratikjain226 |
C |
June 19, 2020, 5:45 a.m. |
OK |
PyPy 3 |
TESTS |
30 |
140 |
2457600 |
|
|
84233534 |
N9199 |
C |
June 18, 2020, 4:17 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
0 |
|
|
84231725 |
x3mka |
C |
June 18, 2020, 4:13 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
1740800 |
|
|
84219186 |
Natureforce123 |
C |
June 18, 2020, 3:48 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
1740800 |
|
|
84274821 |
taoboquan1 |
C |
June 18, 2020, 8:37 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
1945600 |
|
|
84276146 |
Aestroix |
C |
June 18, 2020, 9:07 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
2048000 |
|
|
84283011 |
generic_placeholder_name |
C |
June 19, 2020, 1:33 a.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
2150400 |
|
|
84282033 |
shamdin |
C |
June 19, 2020, 12:50 a.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
2150400 |
|
|
84256118 |
rominaabadi1994 |
C |
June 18, 2020, 5:09 p.m. |
OK |
PyPy 3 |
TESTS |
30 |
155 |
2150400 |
|
|
84225432 |
Hitikkumar |
C |
June 18, 2020, 4 p.m. |
OK |
Python 2 |
TESTS |
30 |
187 |
409600 |
|
|
84272512 |
Waifoorces |
C |
June 18, 2020, 7:52 p.m. |
OK |
Python 3 |
TESTS |
30 |
108 |
307200 |
|
|
84257393 |
bavi19 |
C |
June 18, 2020, 5:12 p.m. |
OK |
Python 3 |
TESTS |
30 |
108 |
307200 |
|
|
84233003 |
neelabh17 |
C |
June 18, 2020, 4:16 p.m. |
OK |
Python 3 |
TESTS |
30 |
108 |
307200 |
|
|
84226727 |
astrocat879 |
C |
June 18, 2020, 4:03 p.m. |
OK |
Python 3 |
TESTS |
30 |
108 |
307200 |
|
|
84286783 |
prsb123 |
C |
June 19, 2020, 3:28 a.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84286495 |
rupeshrk3 |
C |
June 19, 2020, 3:21 a.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84279735 |
_Fizzz_ |
C |
June 18, 2020, 11:02 p.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84278337 |
abhay_2001 |
C |
June 18, 2020, 10:07 p.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84270482 |
Mayank08 |
C |
June 18, 2020, 7:19 p.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84268244 |
khyati12 |
C |
June 18, 2020, 6:46 p.m. |
OK |
Python 3 |
TESTS |
30 |
109 |
307200 |
|
|
84230207 |
GeoffreyY |
C |
June 18, 2020, 4:10 p.m. |
OK |
Rust |
TESTS |
30 |
77 |
0 |
|
|
84233793 |
gevmart |
C |
June 18, 2020, 4:18 p.m. |
OK |
Scala |
TESTS |
30 |
577 |
0 |
|
|
remove filters
Back to search problems