Codeforces Round 265 (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
464 Codeforces Round 265 (Div. 1) FINISHED False 7200 327508204 Sept. 7, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1714 ) B Restore Cube PROGRAMMING brute force geometry 2200

B'Peter had a cube with non-zero length of a side. He put the cube into three-dimensional space in such a way that its vertices lay at integer points (it is possible that the cube 's sides are not parallel to the coordinate axes). Then he took a piece of paper and wrote down eight lines, each containing three integers -- coordinates of cube 's vertex (a single line contains coordinates of a single vertex, each vertex is written exactly once), put the paper on the table and left. While Peter was away, his little brother Nick decided to play with the numbers on the paper. In one operation Nick could swap some numbers inside a single line (Nick didn 't swap numbers from distinct lines). Nick could have performed any number of such operations. When Peter returned and found out about Nick 's mischief, he started recollecting the original coordinates. Help Peter restore the original position of the points or else state that this is impossible and the numbers were initially recorded incorrectly. Each of the eight lines contains three space-separated integers -- the numbers written on the piece of paper after Nick 's mischief. All numbers do not exceed 106 in their absolute value. If there is a way to restore the cube, then print in the first line "YES". In each of the next eight lines print three integers -- the restored coordinates of the points. The numbers in the i-th output line must be a permutation of the numbers in i-th input line. The numbers should represent the vertices of a cube with non-zero length of a side. If there are multiple possible ways, print any of them. If there is no valid way, print "NO" (without the quotes) in the first line. Do not print anything else.'...

Tutorials

Codeforces Round #265 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7710591 Gassa B Sept. 7, 2014, 4:54 p.m. OK D TESTS 47 31 0 2200
7709883 hos.lyric B Sept. 7, 2014, 4:45 p.m. OK D TESTS 47 78 2457600 2200
7714931 ruban B Sept. 7, 2014, 6:53 p.m. OK Delphi TESTS 47 826 19558400 2200
7714440 ruban B Sept. 7, 2014, 6:31 p.m. OK Delphi TESTS 47 982 19558400 2200
7744738 WARenie B Sept. 11, 2014, 3:28 p.m. OK FPC TESTS 47 343 0 2200
7710922 Alex_2oo8 B Sept. 7, 2014, 4:58 p.m. OK FPC TESTS 47 576 2150400 2200
7713218 I_love_PMK B Sept. 7, 2014, 5:26 p.m. OK FPC TESTS 47 967 102400 2200
7712218 waitnote B Sept. 7, 2014, 5:15 p.m. OK FPC TESTS 47 982 0 2200
15143505 HappyNewYearMike B Dec. 31, 2015, 11:21 p.m. OK GNU C++ TESTS 47 15 0 2200
10643766 krijgertje B April 9, 2015, 8:28 p.m. OK GNU C++ TESTS 47 15 0 2200
7863848 Rex-myFriendForever B Sept. 20, 2014, 8:33 a.m. OK GNU C++ TESTS 47 15 0 2200
7727049 carabet.cosmin B Sept. 9, 2014, 9:50 a.m. OK GNU C++ TESTS 47 15 0 2200
7723202 Maxim B Sept. 8, 2014, 5:24 p.m. OK GNU C++ TESTS 47 15 0 2200
7721797 stoundmire B Sept. 8, 2014, 2:02 p.m. OK GNU C++ TESTS 47 15 0 2200
7721145 Toktam B Sept. 8, 2014, 12:44 p.m. OK GNU C++ TESTS 47 15 0 2200
7715830 alwayswimmin B Sept. 7, 2014, 8:14 p.m. OK GNU C++ TESTS 47 15 0 2200
7715615 alwayswimmin B Sept. 7, 2014, 7:49 p.m. OK GNU C++ TESTS 47 15 0 2200
7709148 gen B Sept. 7, 2014, 4:36 p.m. OK GNU C++ TESTS 47 15 0 2200
9879692 alexredna B Feb. 17, 2015, 8:18 a.m. OK GNU C++0x TESTS 47 15 0 2200
8183505 semiexp B Oct. 12, 2014, 12:57 p.m. OK GNU C++0x TESTS 47 15 0 2200
7716276 Alexus B Sept. 7, 2014, 9:26 p.m. OK GNU C++0x TESTS 47 15 0 2200
7715486 akovski B Sept. 7, 2014, 7:34 p.m. OK GNU C++0x TESTS 47 15 102400 2200
9823390 u128 B Feb. 14, 2015, 6:17 a.m. OK GNU C++0x TESTS 47 30 0 2200
7734367 Errichto B Sept. 10, 2014, 11:30 a.m. OK GNU C++0x TESTS 47 30 0 2200
7718714 KungA B Sept. 8, 2014, 6:42 a.m. OK GNU C++0x TESTS 47 30 102400 2200
7715078 delta_4d B Sept. 7, 2014, 7 p.m. OK GNU C++0x TESTS 47 30 204800 2200
9097467 MuratKhayrulin B Dec. 12, 2014, 11:26 p.m. OK GNU C++0x TESTS 47 31 0 2200
7949210 zimpha B Sept. 25, 2014, 4:25 p.m. OK GNU C++0x TESTS 47 31 0 2200
59860209 rainboy B Sept. 1, 2019, 3:01 p.m. OK GNU C11 TESTS 47 499 0 2200
15990056 TimonKnigge B Feb. 13, 2016, 4:31 p.m. OK GNU C++11 TESTS 47 15 0 2200
22981049 maratonando B Dec. 14, 2016, 7:17 p.m. OK GNU C++11 TESTS 47 15 0 2200
20823738 maratonando2 B Sept. 22, 2016, 5:48 p.m. OK GNU C++11 TESTS 47 15 0 2200
17149649 Vercingetorix B April 3, 2016, 7:21 p.m. OK GNU C++11 TESTS 47 15 2252800 2200
17149463 Nerevar B April 3, 2016, 6:57 p.m. OK GNU C++11 TESTS 47 15 2252800 2200
21225928 marX B Oct. 6, 2016, 4:41 a.m. OK GNU C++11 TESTS 47 30 0 2200
42010430 benmirt B Aug. 23, 2018, 11:35 p.m. OK GNU C++11 TESTS 47 30 0 2200
57888816 lopare B July 28, 2019, 11:03 a.m. OK GNU C++11 TESTS 47 31 0 2200
57818986 py_ultron B July 26, 2019, 9:34 p.m. OK GNU C++11 TESTS 47 31 0 2200
59693944 2016wudi B Aug. 30, 2019, 7:36 a.m. OK GNU C++11 TESTS 47 31 0 2200
31108349 darkkcyan B Oct. 7, 2017, 9:31 a.m. OK GNU C++14 TESTS 47 15 204800 2200
21349214 Velfke B Oct. 11, 2016, 1:34 a.m. OK GNU C++14 TESTS 47 15 1945600 2200
23511933 Georeth B Jan. 3, 2017, 7:46 a.m. OK GNU C++14 TESTS 47 15 1945600 2200
37386424 Zxyelf B April 17, 2018, 3:57 a.m. OK GNU C++14 TESTS 47 15 3379200 2200
58063632 runfeng1998 B July 31, 2019, 8:14 a.m. OK GNU C++14 TESTS 47 30 0 2200
25549217 Snow_Leopard B March 16, 2017, 12:57 p.m. OK GNU C++14 TESTS 47 31 1945600 2200
25493232 orbitingflea B March 15, 2017, 8:39 a.m. OK GNU C++14 TESTS 47 61 1843200 2200
53670815 Yuki726 B May 2, 2019, 1:04 p.m. OK GNU C++14 TESTS 47 62 0 2200
23218648 yanQval B Dec. 22, 2016, 6:43 a.m. OK GNU C++14 TESTS 47 62 1945600 2200
40655372 bojverdict1 B July 23, 2018, 3:15 a.m. OK GNU C++14 TESTS 47 78 0 2200
51125579 lmiskiew B March 10, 2019, 11:27 a.m. OK GNU C++17 TESTS 47 31 102400 2200
55664180 chongryong B June 17, 2019, 1:39 a.m. OK GNU C++17 TESTS 47 46 0 2200
64505168 roll_no_1 B Nov. 8, 2019, 6:32 a.m. OK GNU C++17 TESTS 47 62 0 2200
64505105 vjudge3 B Nov. 8, 2019, 6:30 a.m. OK GNU C++17 TESTS 47 77 0 2200
40693275 bugaosuni598 B July 24, 2018, 6:54 a.m. OK GNU C++17 TESTS 47 93 204800 2200
46054083 Round_Dice B Nov. 22, 2018, 9:49 a.m. OK GNU C++17 TESTS 47 93 409600 2200
55008204 chongryong B June 3, 2019, 8:44 a.m. OK GNU C++17 TESTS 47 109 204800 2200
56817524 vjudge4 B July 10, 2019, 8:13 p.m. OK GNU C++17 TESTS 47 124 204800 2200
56817545 cristian1997 B July 10, 2019, 8:14 p.m. OK GNU C++17 TESTS 47 124 204800 2200
61676018 Miyukine B Oct. 1, 2019, 8:38 p.m. OK GNU C++17 TESTS 47 202 0 2200
15915319 not_bot_but_POT B Feb. 9, 2016, 2:04 p.m. OK Haskell TESTS 47 280 8499200 2200
35874128 ______u______ B March 3, 2018, 7:45 a.m. OK Haskell TESTS 47 280 53248000 2200
35873898 ______n______ B March 3, 2018, 7:40 a.m. OK Haskell TESTS 47 280 53248000 2200
35873283 _____k_____ B March 3, 2018, 7:28 a.m. OK Haskell TESTS 47 280 53248000 2200
35873208 _____i_____ B March 3, 2018, 7:27 a.m. OK Haskell TESTS 47 280 53248000 2200
35864123 ______h______ B March 2, 2018, 11:02 p.m. OK Haskell TESTS 47 280 53248000 2200
35863938 ______k______ B March 2, 2018, 10:57 p.m. OK Haskell TESTS 47 280 53248000 2200
35863647 ______i______ B March 2, 2018, 10:51 p.m. OK Haskell TESTS 47 280 53248000 2200
35861934 ______M______ B March 2, 2018, 10:14 p.m. OK Haskell TESTS 47 280 53248000 2200
8506800 Lesha B Oct. 31, 2014, 10:39 p.m. OK Haskell TESTS 47 343 1126400 2200
7718177 meijun B Sept. 8, 2014, 5:01 a.m. OK Java 6 TESTS 47 93 102400 2200
7718168 meijun B Sept. 8, 2014, 4:59 a.m. OK Java 6 TESTS 47 93 102400 2200
7718162 meijun B Sept. 8, 2014, 4:58 a.m. OK Java 6 TESTS 47 202 102400 2200
7712297 meijun B Sept. 7, 2014, 5:16 p.m. OK Java 6 TESTS 47 280 204800 2200
7715493 shilov B Sept. 7, 2014, 7:35 p.m. OK Java 6 TESTS 47 701 819200 2200
8081101 asinkevich B Oct. 4, 2014, 10:15 p.m. OK Java 6 TESTS 47 826 0 2200
7707060 Petr B Sept. 7, 2014, 4:12 p.m. OK Java 7 TESTS 47 92 102400 2200
7711918 ixxa B Sept. 7, 2014, 5:11 p.m. OK Java 7 TESTS 47 93 102400 2200
16132461 rchome B Feb. 18, 2016, 12:33 a.m. OK Java 7 TESTS 47 124 0 2200
13192454 ben.lin9 B Sept. 23, 2015, 5:03 p.m. OK Java 7 TESTS 47 139 0 2200
7723306 hama-du B Sept. 8, 2014, 5:39 p.m. OK Java 7 TESTS 47 171 204800 2200
7724521 alexyz B Sept. 8, 2014, 10:01 p.m. OK Java 7 TESTS 47 187 204800 2200
7704458 qwerty787788 B Sept. 7, 2014, 3:52 p.m. OK Java 7 TESTS 47 202 0 2200
7715736 dusty.and.rusty B Sept. 7, 2014, 8:03 p.m. OK Java 7 TESTS 47 218 102400 2200
7716155 peter31415 B Sept. 7, 2014, 9:02 p.m. OK Java 7 TESTS 47 233 0 2200
7723153 mukku B Sept. 8, 2014, 5:16 p.m. OK Java 7 TESTS 47 249 0 2200
9880362 fnch B Feb. 17, 2015, 9:50 a.m. OK Java 8 TESTS 47 140 0 2200
7708741 ilyakor B Sept. 7, 2014, 4:31 p.m. OK Java 8 TESTS 47 140 0 2200
7706615 VArtem B Sept. 7, 2014, 4:08 p.m. OK Java 8 TESTS 47 155 0 2200
22702074 sweiss B Dec. 4, 2016, 7:09 p.m. OK Java 8 TESTS 47 202 0 2200
12409521 Bat-Orgil B Aug. 8, 2015, 5:12 a.m. OK Java 8 TESTS 47 202 0 2200
7709173 sas4eka B Sept. 7, 2014, 4:36 p.m. OK Java 8 TESTS 47 202 102400 2200
13098079 andreassudihardjo B Sept. 19, 2015, 8:07 a.m. OK Java 8 TESTS 47 218 0 2200
7716354 vadimmm B Sept. 7, 2014, 9:43 p.m. OK Java 8 TESTS 47 233 0 2200
7713798 mmaxio B Sept. 7, 2014, 6:15 p.m. OK Java 8 TESTS 47 296 2457600 2200
59860088 Dukkha B Sept. 1, 2019, 2:58 p.m. OK Java 8 TESTS 47 389 0 2200
7711770 riversouther B Sept. 7, 2014, 5:09 p.m. OK JavaScript TESTS 47 280 1945600 2200
7718246 og.kostya B Sept. 8, 2014, 5:14 a.m. OK MS C# TESTS 47 62 3072000 2200
7715334 og.kostya B Sept. 7, 2014, 7:22 p.m. OK MS C# TESTS 47 62 3072000 2200
7715437 og.kostya B Sept. 7, 2014, 7:31 p.m. OK MS C# TESTS 47 62 3174400 2200
7718075 og.kostya B Sept. 8, 2014, 4:40 a.m. OK MS C# TESTS 47 77 3072000 2200
7708816 azukun B Sept. 7, 2014, 4:32 p.m. OK MS C# TESTS 47 405 5529600 2200
7805945 dimiter B Sept. 16, 2014, 4:35 a.m. OK MS C# TESTS 47 717 5427200 2200
7718518 sdya B Sept. 8, 2014, 6:07 a.m. OK MS C++ TESTS 47 15 0 2200
13176479 shivavelingker B Sept. 23, 2015, 1:50 a.m. OK MS C++ TESTS 47 30 0 2200
7721136 josdas B Sept. 8, 2014, 12:42 p.m. OK MS C++ TESTS 47 31 0 2200
7721082 josdas B Sept. 8, 2014, 12:36 p.m. OK MS C++ TESTS 47 31 0 2200
7707609 gvalentiny B Sept. 7, 2014, 4:18 p.m. OK MS C++ TESTS 47 31 16076800 2200
7719312 915507430 B Sept. 8, 2014, 8:21 a.m. OK MS C++ TESTS 47 46 0 2200
7713763 danilka.pro B Sept. 7, 2014, 6:15 p.m. OK MS C++ TESTS 47 46 0 2200
7712553 Metamorphus B Sept. 7, 2014, 5:19 p.m. OK MS C++ TESTS 47 46 0 2200
7712510 Timur_Sitdikov B Sept. 7, 2014, 5:19 p.m. OK MS C++ TESTS 47 46 0 2200
7709759 RiKang B Sept. 7, 2014, 4:43 p.m. OK MS C++ TESTS 47 46 0 2200
11058704 Dremov B May 10, 2015, 1:05 a.m. OK PyPy 2 TESTS 47 997 7577600 2200
7938717 nealzane B Sept. 24, 2014, 4:36 p.m. OK Python 2 TESTS 47 936 0 2200
7938385 nealzane B Sept. 24, 2014, 4:06 p.m. OK Python 2 TESTS 47 966 0 2200
9822817 jadesym B Feb. 14, 2015, 4:12 a.m. OK Python 3 TESTS 47 93 307200 2200
7708805 jasperH B Sept. 7, 2014, 4:32 p.m. OK Python 3 TESTS 47 93 307200 2200
9822824 jadesym B Feb. 14, 2015, 4:14 a.m. OK Python 3 TESTS 47 124 307200 2200
42126029 Mk_Python_v1 B Aug. 26, 2018, 3:14 p.m. OK Python 3 TESTS 47 171 0 2200
9825067 jadesym B Feb. 14, 2015, 11:09 a.m. OK Python 3 TESTS 47 249 512000 2200

remove filters

Back to search problems