Codeforces Round 488 by NEAR (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
993 Codeforces Round 488 by NEAR (Div. 1) FINISHED False 9000 202656299 June 16, 2018, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4160 ) A Two Squares PROGRAMMING geometry implementation 1700

B'You are given two squares, one with sides parallel to the coordinate axes, and another one with sides at 45 degrees to the coordinate axes. Find whether the two squares intersect. The interior of the square is considered to be part of the square, i.e. if one square is completely inside another, they intersect. If the two squares only share one common point, they are also considered to intersect. The input data consists of two lines, one for each square, both containing 4 pairs of integers. Each pair represents coordinates of one vertex of the square. Coordinates within each line are either in clockwise or counterclockwise order. The first line contains the coordinates of the square with sides parallel to the coordinate axes, the second line contains the coordinates of the square at 45 degrees. All the values are integer and between -100 and 100 . Print "Yes" if squares intersect, otherwise print "No". You can print each letter in any case (upper or lower). In the first example the second square lies entirely within the first square, so they do intersect. In the second sample squares do not have any points in common. Here are images corresponding to the samples: '...

Tutorials

Codeforces Round #488 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39341906 rr_ A June 17, 2018, 6:42 p.m. OK D TESTS 124 30 0 1700
39341941 rr_ A June 17, 2018, 6:44 p.m. OK D TESTS 124 31 0 1700
39295265 Gassa A June 16, 2018, 4:48 p.m. OK D TESTS 124 31 0 1700
42095599 MYNAMEISSHARIFUL A Aug. 25, 2018, 3:56 p.m. OK GNU C TESTS 124 31 0 1700
39732535 ahmedatefismaeil A June 28, 2018, 4:43 a.m. OK GNU C TESTS 124 31 204800 1700
39675256 jokergh A June 26, 2018, 12:23 p.m. OK GNU C++ TESTS 124 30 0 1700
39346018 dqa2020 A June 18, 2018, 2:51 a.m. OK GNU C++ TESTS 124 30 0 1700
42256822 vjudge1 A Aug. 29, 2018, 10:22 p.m. OK GNU C++ TESTS 124 31 0 1700
42256818 tomaso A Aug. 29, 2018, 10:21 p.m. OK GNU C++ TESTS 124 31 0 1700
42230302 xymtxdy A Aug. 29, 2018, 6:15 a.m. OK GNU C++ TESTS 124 31 0 1700
41649743 luogu_bot5 A Aug. 16, 2018, 11:05 a.m. OK GNU C++ TESTS 124 31 0 1700
41532393 vjudge4 A Aug. 12, 2018, 3:17 p.m. OK GNU C++ TESTS 124 31 0 1700
41337425 vjudge4 A Aug. 8, 2018, 1:02 p.m. OK GNU C++ TESTS 124 31 0 1700
41335191 vjudge5 A Aug. 8, 2018, 11:35 a.m. OK GNU C++ TESTS 124 31 0 1700
41199787 vjudge3 A Aug. 4, 2018, 4:23 a.m. OK GNU C++ TESTS 124 31 0 1700
39330513 janurban A June 17, 2018, 9:07 a.m. OK GNU C++11 TESTS 124 30 0 1700
69883782 Andreiu A Jan. 31, 2020, 7:24 a.m. OK GNU C++11 TESTS 124 31 0 1700
69828303 F-Mu A Jan. 30, 2020, 9:45 a.m. OK GNU C++11 TESTS 124 31 0 1700
69702426 geneanlyz A Jan. 29, 2020, 1:52 a.m. OK GNU C++11 TESTS 124 31 0 1700
67874633 luogu_bot3 A Dec. 29, 2019, 12:49 p.m. OK GNU C++11 TESTS 124 31 0 1700
66236416 hsk142857 A Dec. 3, 2019, 4:21 p.m. OK GNU C++11 TESTS 124 31 0 1700
64051239 Mohamad_AboDan A Nov. 1, 2019, 9:47 p.m. OK GNU C++11 TESTS 124 31 0 1700
62850479 vrasdf A Oct. 18, 2019, 7:08 a.m. OK GNU C++11 TESTS 124 31 0 1700
61944012 AlShaimaa A Oct. 5, 2019, 9:32 p.m. OK GNU C++11 TESTS 124 31 0 1700
61848477 chc_1234567890 A Oct. 4, 2019, 12:01 p.m. OK GNU C++11 TESTS 124 31 0 1700
39453848 Jake_sep A June 21, 2018, 7:11 a.m. OK GNU C++14 TESTS 124 15 0 1700
39333667 Never_See A June 17, 2018, 11:25 a.m. OK GNU C++14 TESTS 124 15 0 1700
39425223 vjudge3 A June 20, 2018, 3:18 a.m. OK GNU C++14 TESTS 124 15 204800 1700
39297264 hitman623 A June 16, 2018, 4:58 p.m. OK GNU C++14 TESTS 124 15 204800 1700
39432289 codeRaider A June 20, 2018, 9:57 a.m. OK GNU C++14 TESTS 124 15 7987200 1700
57016764 coolcode1 A July 14, 2019, 11:59 a.m. OK GNU C++14 TESTS 124 30 0 1700
39671467 shivani_karwa A June 26, 2018, 9:33 a.m. OK GNU C++14 TESTS 124 30 0 1700
39451256 Toxin A June 21, 2018, 4:45 a.m. OK GNU C++14 TESTS 124 30 0 1700
39426437 idsigma A June 20, 2018, 5:01 a.m. OK GNU C++14 TESTS 124 30 0 1700
39425429 shb123 A June 20, 2018, 3:38 a.m. OK GNU C++14 TESTS 124 30 0 1700
55393289 chongryong A June 10, 2019, 10:41 a.m. OK GNU C++17 TESTS 124 30 0 1700
51910987 2007_donbass_bokajoka007 A March 27, 2019, 6:09 p.m. OK GNU C++17 TESTS 124 30 0 1700
39460858 stArliGht A June 21, 2018, 11:50 a.m. OK GNU C++17 TESTS 124 30 0 1700
39343471 Martingale A June 17, 2018, 9:05 p.m. OK GNU C++17 TESTS 124 30 0 1700
39341441 BessieTheCow A June 17, 2018, 6:07 p.m. OK GNU C++17 TESTS 124 30 0 1700
39337008 vntshh A June 17, 2018, 1:55 p.m. OK GNU C++17 TESTS 124 30 0 1700
39322132 boook A June 17, 2018, 1:26 a.m. OK GNU C++17 TESTS 124 30 0 1700
39319190 achi_basadzishvili A June 16, 2018, 9:14 p.m. OK GNU C++17 TESTS 124 30 0 1700
39319024 Kerim.K A June 16, 2018, 9:07 p.m. OK GNU C++17 TESTS 124 30 0 1700
39296204 Ekler A June 16, 2018, 4:52 p.m. OK GNU C++17 TESTS 124 30 0 1700
39406726 Solix A June 19, 2018, 10:17 a.m. OK Go TESTS 124 31 204800 1700
60564684 vjudge3 A Sept. 14, 2019, 2:59 p.m. OK Go TESTS 124 46 0 1700
60564166 WangJialei A Sept. 14, 2019, 2:57 p.m. OK Go TESTS 124 46 0 1700
69264021 333ayush A Jan. 21, 2020, 6 p.m. OK Java 11 TESTS 124 187 0 1700
69264645 not_goodATcoding A Jan. 21, 2020, 6:12 p.m. OK Java 11 TESTS 124 202 0 1700
58534078 chojh1222 A Aug. 10, 2019, 11 a.m. OK Java 8 TESTS 124 109 0 1700
51452043 alibaba A March 18, 2019, 3:12 p.m. OK Java 8 TESTS 124 124 0 1700
66537405 yaoct A Dec. 9, 2019, 10:10 a.m. OK Java 8 TESTS 124 124 0 1700
47517769 kusomushi A Dec. 26, 2018, 11:05 a.m. OK Java 8 TESTS 124 124 0 1700
39333399 di_halt A June 17, 2018, 11:14 a.m. OK Java 8 TESTS 124 124 0 1700
39333014 di_halt A June 17, 2018, 10:56 a.m. OK Java 8 TESTS 124 139 0 1700
39654621 AkshajK A June 25, 2018, 4:14 p.m. OK Java 8 TESTS 124 139 0 1700
44411964 SpargelTarzan A Oct. 16, 2018, 5:12 p.m. OK Java 8 TESTS 124 140 0 1700
39339955 Mazen_Tarek A June 17, 2018, 4:33 p.m. OK Java 8 TESTS 124 140 0 1700
39310853 lucasr A June 16, 2018, 6:25 p.m. OK Java 8 TESTS 124 140 0 1700
39295695 elizarov A June 16, 2018, 4:50 p.m. OK Kotlin TESTS 124 170 0 1700
55410829 m1_k3 A June 10, 2019, 7:41 p.m. OK Mono C# TESTS 124 77 3686400 1700
55410063 m1_k3 A June 10, 2019, 7:04 p.m. OK Mono C# TESTS 124 93 3686400 1700
62964169 vjudge2 A Oct. 20, 2019, 3:22 a.m. OK MS C++ TESTS 124 31 0 1700
50905751 h.mokdad A March 6, 2019, 7:58 p.m. OK MS C++ TESTS 124 31 0 1700
44468816 vjudge1 A Oct. 18, 2018, 4:50 a.m. OK MS C++ TESTS 124 31 0 1700
44287344 vjudge3 A Oct. 14, 2018, 8:09 a.m. OK MS C++ TESTS 124 31 0 1700
43942976 vjudge2 A Oct. 7, 2018, 12:20 p.m. OK MS C++ TESTS 124 31 0 1700
41940229 scorpiowf A Aug. 21, 2018, 2:58 p.m. OK MS C++ TESTS 124 31 0 1700
40684854 vjudge5 A July 24, 2018, 1:12 a.m. OK MS C++ TESTS 124 31 0 1700
40669326 vjudge5 A July 23, 2018, 11:45 a.m. OK MS C++ TESTS 124 31 0 1700
54453152 vjudge5 A May 21, 2019, 2:32 p.m. OK MS C++ TESTS 124 31 0 1700
56782444 vjudge2 A July 10, 2019, 6:52 a.m. OK MS C++ TESTS 124 31 0 1700
50682922 vlasova_ov A March 2, 2019, 12:20 p.m. OK MS C++ 2017 TESTS 124 46 0 1700
39703163 fruha A June 27, 2018, 1:46 p.m. OK PascalABC.NET TESTS 124 46 102400 1700
43727933 mayakin A Oct. 3, 2018, 1 p.m. OK PHP TESTS 124 77 5836800 1700
40079063 SerChirag A July 8, 2018, 8:03 a.m. OK PyPy 2 TESTS 124 140 0 1700
39294628 kevinsogo A June 16, 2018, 4:45 p.m. OK PyPy 2 TESTS 124 264 4915200 1700
47552936 indianfootball A Dec. 27, 2018, 2:06 p.m. OK PyPy 3 TESTS 124 140 0 1700
39293911 --d A June 16, 2018, 4:42 p.m. OK PyPy 3 TESTS 124 155 1024000 1700
39586639 cxt A June 24, 2018, 2:14 a.m. OK PyPy 3 TESTS 124 155 5120000 1700
66241073 shiv1470 A Dec. 3, 2019, 6:11 p.m. OK PyPy 3 TESTS 124 170 1945600 1700
39299674 Ferume A June 16, 2018, 5:10 p.m. OK PyPy 3 TESTS 124 233 4300800 1700
39340734 Ali_Pi A June 17, 2018, 5:25 p.m. OK Python 2 TESTS 124 109 0 1700
39306866 Heisenbug A June 16, 2018, 5:56 p.m. OK Python 2 TESTS 124 109 0 1700
39296635 nwi A June 16, 2018, 4:54 p.m. OK Python 2 TESTS 124 124 0 1700
39296842 WNG A June 16, 2018, 4:55 p.m. OK Python 2 TESTS 124 140 0 1700
39319511 Yee_172 A June 16, 2018, 9:32 p.m. OK Python 3 TESTS 124 78 0 1700
39347191 krpiyush5 A June 18, 2018, 4:57 a.m. OK Python 3 TESTS 124 93 0 1700
39338617 orailly A June 17, 2018, 3:08 p.m. OK Python 3 TESTS 124 93 0 1700
39302646 yum A June 16, 2018, 5:28 p.m. OK Python 3 TESTS 124 93 0 1700
39349223 knight07 A June 18, 2018, 7:07 a.m. OK Python 3 TESTS 124 93 102400 1700
39296247 satja A June 16, 2018, 4:52 p.m. OK Python 3 TESTS 124 93 102400 1700
39298396 receed A June 16, 2018, 5:04 p.m. OK Python 3 TESTS 124 108 0 1700
39404964 theodor.moroianu A June 19, 2018, 9:20 a.m. OK Python 3 TESTS 124 109 0 1700
39293152 SoMuchDrama A June 16, 2018, 4:40 p.m. OK Python 3 TESTS 124 109 0 1700
53894383 daotiennamhlvl A May 9, 2019, 4:22 a.m. OK Python 3 TESTS 124 109 307200 1700
39357871 cyand1317 A June 18, 2018, 1:48 p.m. OK Ruby TESTS 124 62 0 1700
39521249 LemonTree A June 22, 2018, 3:55 p.m. OK Rust TESTS 124 46 0 1700
39297419 limed A June 16, 2018, 4:58 p.m. OK Scala TESTS 124 561 102400 1700

remove filters

Back to search problems