Codeforces Round 655 (Div. 2)

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
1372 Codeforces Round 655 (Div. 2) FINISHED False 7200 137343299 July 11, 2020, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 28382 ) B Omkar and Last Class of Math PROGRAMMING constructive algorithms greedy math number theory 1300

B"In Omkar's last class of math, he learned about the least common multiple, or LCM . LCM(a, b) is the smallest positive integer x which is divisible by both a and b . Omkar, having a laudably curious mind, immediately thought of a problem involving the LCM operation: given an integer n , find positive integers a and b such that a + b = n and LCM(a, b) is the minimum value possible. Can you help Omkar solve his ludicrously challenging math problem? Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 10 ). Description of the test cases follows. Each test case consists of a single integer n ( 2 <= q n <= q 10^{9} ). For each test case, output two positive integers a and b , such that a + b = n and LCM(a, b) is the minimum possible. For the first test case, the numbers we can choose are 1, 3 or 2, 2 . LCM(1, 3) = 3 and LCM(2, 2) = 2 , so we output 2 2 . For the second test case, the numbers we can choose are 1, 5 , 2, 4 , or 3, 3 . LCM(1, 5) = 5 , LCM(2, 4) = 4 , and LCM(3, 3) = 3 , so we output 3 3 . For the third test case, LCM(3, 6) = 6 . It can be shown that there are no other pairs of numbers which sum to 9 that have a lower LCM . "...

Tutorials

Codeforces Round #655 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
86564525 Gassa B July 11, 2020, 3:56 p.m. OK D TESTS 28 46 4710400 1300
86610228 fpc_coder B July 12, 2020, 1:07 a.m. OK FPC TESTS 28 31 3481600 1300
86611260 Mangata B July 12, 2020, 1:40 a.m. OK GNU C++11 TESTS 28 15 3686400 1300
86621432 pooja_desur B July 12, 2020, 5:31 a.m. OK GNU C++11 TESTS 28 15 3891200 1300
86613758 woshinibaba B July 12, 2020, 2:50 a.m. OK GNU C++11 TESTS 28 15 3891200 1300
86612796 nuchenghao B July 12, 2020, 2:25 a.m. OK GNU C++11 TESTS 28 15 3891200 1300
86584227 SimplyDifficult B July 11, 2020, 4:44 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86583261 Lyyyf B July 11, 2020, 4:41 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86582269 Zdxfgre B July 11, 2020, 4:38 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86578285 PriyankaJ B July 11, 2020, 4:27 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86566683 vv1801 B July 11, 2020, 4 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86562238 emsilverfox B July 11, 2020, 3:53 p.m. OK GNU C++11 TESTS 28 15 3891200 1300
86618899 navneetkumar576 B July 12, 2020, 4:45 a.m. OK GNU C++14 TESTS 28 30 3686400 1300
86609062 19e016 B July 12, 2020, 12:20 a.m. OK GNU C++14 TESTS 28 30 3686400 1300
86571491 Ttube_lightT B July 11, 2020, 4:09 p.m. OK GNU C++14 TESTS 28 30 3686400 1300
86567684 saksham99 B July 11, 2020, 4:01 p.m. OK GNU C++14 TESTS 28 30 3686400 1300
86557998 tonybanner B July 11, 2020, 3:46 p.m. OK GNU C++14 TESTS 28 30 3686400 1300
86556577 naman1409 B July 11, 2020, 3:44 p.m. OK GNU C++14 TESTS 28 30 3686400 1300
86614679 anirudj B July 12, 2020, 3:13 a.m. OK GNU C++14 TESTS 28 30 3788800 1300
86607546 _wxy B July 11, 2020, 10:59 p.m. OK GNU C++14 TESTS 28 30 3788800 1300
86597363 Pratech B July 11, 2020, 6:55 p.m. OK GNU C++14 TESTS 28 30 3788800 1300
86584605 maze_runner99 B July 11, 2020, 4:45 p.m. OK GNU C++14 TESTS 28 30 3788800 1300

remove filters

Back to search problems