Bubble Cup 13 - Finals [Online Mirror, unrated, 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
1423 Bubble Cup 13 - Finals [Online Mirror, unrated, Div. 1] FINISHED False 10800 135449711 Oct. 5, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4976 ) K Lonely Numbers PROGRAMMING binary search math number theory

B"In number world, two different numbers are friends if they have a lot in common, but also each one has unique perks. More precisely, two different numbers a and b are friends if gcd(a,b) , frac{a}{gcd(a,b)} , frac{b}{gcd(a,b)} can form sides of a triangle. Three numbers a , b and c can form sides of a triangle if a + b > c , b + c > a and c + a > b . In a group of numbers, a number is lonely if it doesn't have any friends in that group. Given a group of numbers containing all numbers from 1, 2, 3, ..., n , how many numbers in that group are lonely? The first line contains a single integer t (1 <= q t <= q 10^6) - number of test cases. On next line there are t numbers, n_i (1 <= q n_i <= q 10^6) - meaning that in case i you should solve for numbers 1, 2, 3, ..., n_i . For each test case, print the answer on separate lines: number of lonely numbers in group 1, 2, 3, ..., n_i . For first test case, 1 is the only number and therefore lonely. For second test case where n=5 , numbers 1 , 3 and 5 are lonely. For third test case where n=10 , numbers 1 , 5 and 7 are lonely. "...

Tutorials

FinalsEditorial2020.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
94773294 Cyanic ix35 s_r_f K Oct. 5, 2020, 1:40 p.m. OK GNU C++11 TESTS 14 124 11980800
94775976 _Backl1ght K Oct. 5, 2020, 2:01 p.m. OK GNU C++11 TESTS 14 155 7168000
94770798 xay5421 LJC00118 K Oct. 5, 2020, 1:20 p.m. OK GNU C++11 TESTS 14 155 7987200
94771252 jzp hs-black chr_ K Oct. 5, 2020, 1:23 p.m. OK GNU C++11 TESTS 14 156 24064000
94777334 Scum001 fishcathu. LBR_ K Oct. 5, 2020, 2:12 p.m. OK GNU C++11 TESTS 14 218 9830400
94810779 luogu_bot3 K Oct. 5, 2020, 11:55 p.m. OK GNU C++11 TESTS 14 264 9011200
94776853 C20193618 Lucky_Glass Lower_Rating K Oct. 5, 2020, 2:08 p.m. OK GNU C++11 TESTS 14 265 60108800
94810755 ChPu437 K Oct. 5, 2020, 11:53 p.m. OK GNU C++11 TESTS 14 280 9011200
94774749 C20191629 TiwAirOAO K Oct. 5, 2020, 1:52 p.m. OK GNU C++11 TESTS 14 280 11980800
94772926 xgzc cjrzn M_sea K Oct. 5, 2020, 1:37 p.m. OK GNU C++11 TESTS 14 280 11980800
94774644 upobir K Oct. 5, 2020, 1:51 p.m. OK GNU C++14 TESTS 14 420 9011200
94782454 txingml K Oct. 5, 2020, 2:55 p.m. OK GNU C++14 TESTS 14 421 5836800
94774144 Kalptaru _baba_yaga Wernier K Oct. 5, 2020, 1:47 p.m. OK GNU C++14 TESTS 14 436 5017600
94773936 tzxydby K Oct. 5, 2020, 1:45 p.m. OK GNU C++14 TESTS 14 436 7987200
94773593 muzzafer5 amangoel1234 Shreyas_9991 K Oct. 5, 2020, 1:42 p.m. OK GNU C++14 TESTS 14 451 3993600
94784672 JustasZ K Oct. 5, 2020, 3:14 p.m. OK GNU C++14 TESTS 14 452 3993600
94773934 meoow K Oct. 5, 2020, 1:45 p.m. OK GNU C++14 TESTS 14 452 7987200
94773231 newbiegcz Itst Rubbish12345 K Oct. 5, 2020, 1:40 p.m. OK GNU C++14 TESTS 14 467 5017600
94778832 skydog K Oct. 5, 2020, 2:24 p.m. OK GNU C++14 TESTS 14 467 8601600
94780267 WH6BNNS K Oct. 5, 2020, 2:36 p.m. OK GNU C++14 TESTS 14 467 9011200
94794632 M.Ehab30 K Oct. 5, 2020, 5:04 p.m. OK GNU C++17 TESTS 14 390 5939200
94794615 M.Ehab30 K Oct. 5, 2020, 5:03 p.m. OK GNU C++17 TESTS 14 405 5529600
94779105 dztlb K Oct. 5, 2020, 2:27 p.m. OK GNU C++17 TESTS 14 420 9011200
94776445 korangu_kuppan csemadarhai wxtxdy K Oct. 5, 2020, 2:04 p.m. OK GNU C++17 TESTS 14 436 5017600
94786866 2qbingxuan K Oct. 5, 2020, 3:34 p.m. OK GNU C++17 TESTS 14 436 6144000
94771266 Batrr Sealionheart parasat K Oct. 5, 2020, 1:24 p.m. OK GNU C++17 TESTS 14 436 7987200
94811225 Primo_CUC_Anima K Oct. 6, 2020, 12:18 a.m. OK GNU C++17 TESTS 14 436 11980800
94772477 8-_-8 fake123 fedoseev.timofey K Oct. 5, 2020, 1:33 p.m. OK GNU C++17 TESTS 14 451 5017600
94773223 cheissmart2 K Oct. 5, 2020, 1:40 p.m. OK GNU C++17 TESTS 14 451 7987200
94774002 Farhod_Farmon K Oct. 5, 2020, 1:46 p.m. OK GNU C++17 TESTS 14 452 7987200
94773427 QAQAutoMaton K Oct. 5, 2020, 1:41 p.m. OK GNU C++17 (64) TESTS 14 124 12390400
94814664 LethalPuppy K Oct. 6, 2020, 2:26 a.m. OK GNU C++17 (64) TESTS 14 296 5017600
94774007 ffao K Oct. 5, 2020, 1:46 p.m. OK GNU C++17 (64) TESTS 14 311 4403200
94772845 coldEr66 balbit ToMmyDong K Oct. 5, 2020, 1:37 p.m. OK GNU C++17 (64) TESTS 14 311 5017600
94797755 flaviu2001 K Oct. 5, 2020, 5:53 p.m. OK GNU C++17 (64) TESTS 14 326 7987200
94770170 Maripium Umi Kuroni K Oct. 5, 2020, 1:14 p.m. OK GNU C++17 (64) TESTS 14 327 4096000
94771588 jiangly K Oct. 5, 2020, 1:26 p.m. OK GNU C++17 (64) TESTS 14 327 5017600
94773368 riantkb nuip mtsd K Oct. 5, 2020, 1:41 p.m. OK GNU C++17 (64) TESTS 14 327 6144000
94775029 ha15 K Oct. 5, 2020, 1:54 p.m. OK GNU C++17 (64) TESTS 14 327 7987200
94772417 tute7627 K Oct. 5, 2020, 1:33 p.m. OK GNU C++17 (64) TESTS 14 327 8192000
94774306 uwi K Oct. 5, 2020, 1:48 p.m. OK Java 11 TESTS 14 482 0
94776174 insert_cool_handle K Oct. 5, 2020, 2:02 p.m. OK Java 11 TESTS 14 1387 126771200
94772362 YahiaSherif ZeyadKhattab Hemose K Oct. 5, 2020, 1:32 p.m. OK Java 8 TESTS 14 577 46592000
94774947 Kenb rabaiBomkarBittalBang Tlatoani K Oct. 5, 2020, 1:53 p.m. OK Kotlin TESTS 14 717 94720000
94770912 azukun K Oct. 5, 2020, 1:21 p.m. OK Mono C# TESTS 14 701 102092800
94796006 ZTSSS K Oct. 5, 2020, 5:26 p.m. OK MS C++ 2017 TESTS 14 763 11980800
94787364 jimm89 K Oct. 5, 2020, 3:38 p.m. OK PyPy 3 TESTS 14 655 103424000
94771846 wow_ok conqueror_of_tourist FlakeLCR K Oct. 5, 2020, 1:28 p.m. OK PyPy 3 TESTS 14 904 120217600

remove filters

Back to search problems