Codeforces Global Round 9

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
1375 Codeforces Global Round 9 FINISHED False 9000 143478911 July 4, 2020, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 265 ) I Cubic Lattice PROGRAMMING geometry math matrices number theory

B'A cubic lattice L in 3 -dimensional euclidean space is a set of points defined in the following way: L= {u cdot vec r_1 + v cdot vec r_2 + w cdot vec r_3 }_{u, v, w in mathbb Z} Where vec r_1, vec r_2, vec r_3 in mathbb{Z}^3 are some integer vectors such that: You have to find a cubic lattice L such that A subset L and r is the maximum possible. First line contains single integer n ( 1 <= q n <= q 10^4 ) -- the number of points in A . The i -th of the following n lines contains integers x_i , y_i , z_i ( 0 < x_i^2 + y_i^2 + z_i^2 <= q 10^{16} ) -- coordinates of the i -th point. It is guaranteed that gcd(g_1,g_2, ... ,g_n)=1 where g_i= gcd(x_i,y_i,z_i) . In first line output a single integer r^2 , the square of maximum possible r . In following 3 lines output coordinates of vectors vec r_1 , vec r_2 and vec r_3 respectively. If there are multiple possible answers, output any. '...

Tutorials

79731

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
86012735 DragonO_o I July 4, 2020, 10:03 p.m. OK GNU C++17 TESTS 168 46 4505600
86004194 i_copied I July 4, 2020, 6:46 p.m. OK GNU C++17 TESTS 168 46 4505600
86000122 FlakeLCR I July 4, 2020, 5:57 p.m. OK GNU C++17 TESTS 168 46 4505600
85999368 Monogon I July 4, 2020, 5:51 p.m. OK GNU C++17 TESTS 168 46 4505600
86015370 Benq I July 5, 2020, 12:04 a.m. OK GNU C++17 TESTS 168 311 5120000

remove filters

Back to search problems