Codeforces Round 142 (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
230 Codeforces Round 142 (Div. 2) FINISHED False 7500 382717799 Oct. 1, 2012, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 76525 ) B T-primes PROGRAMMING binary search implementation math number theory 1300

B'We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we 'll call a positive integer t xd0 xa2-prime, if t has exactly three distinct positive divisors. You are given an array of n positive integers. For each of them determine whether it is xd0 xa2-prime or not. The first line contains a single positive integer, n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), showing how many numbers are in the array. The next line contains n space-separated integers xi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891012). Please, do not use the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is advised to use the cin, cout streams or the %I64d specifier. Print n lines: the i-th line should contain "YES" (without the quotes), if number xi is xd0 xa2-prime, and "NO" (without the quotes), if it isn 't. The given test has three numbers. The first number 4 has exactly three divisors -- 1, 2 and 4, thus the answer for this number is "YES". The second number 5 has two divisors (1 and 5), and the third number 6 has four divisors (1, 2, 3, 6), hence the answer for them is "NO".'...

Tutorials

Codeforces Round #142 Problem Analysis

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57344813 vjudge2 B July 19, 2019, 9:40 p.m. OK Clang++17 Diagnostics TESTS 68 778 16793600 1300
55288214 vjudge1 B June 8, 2019, 6:17 a.m. OK Clang++17 Diagnostics TESTS 68 1246 0 1300
65848262 NAKIO B Nov. 27, 2019, 2:40 p.m. OK Clang++17 Diagnostics TESTS 68 1278 0 1300
54353071 tonystarkk B May 18, 2019, 4 p.m. OK Clang++17 Diagnostics TESTS 68 1404 1228800 1300
66548083 my_way B Dec. 9, 2019, 1:54 p.m. OK Clang++17 Diagnostics TESTS 68 1746 97075200 1300
63499986 VanilieProgramatoare B Oct. 26, 2019, 4:51 p.m. OK FPC TESTS 68 746 1228800 1300
63424834 Sonechko B Oct. 26, 2019, 7:32 a.m. OK FPC TESTS 68 1090 0 1300
60523239 uyenlemaipu B Sept. 14, 2019, 9:17 a.m. OK FPC TESTS 68 1152 819200 1300
60260098 SangTin B Sept. 8, 2019, 11:07 a.m. OK FPC TESTS 68 1716 0 1300
61081221 Minh2409 B Sept. 22, 2019, 4:27 p.m. OK FPC TESTS 68 1776 0 1300
62943020 tranminhprvt01 B Oct. 19, 2019, 4:17 p.m. OK FPC TESTS 68 1778 0 1300
53987067 KATAYPEPE B May 11, 2019, 10:18 a.m. OK FPC TESTS 68 1840 1126400 1300
60928947 bxtbxksxd123 B Sept. 20, 2019, 1:08 p.m. OK FPC TESTS 68 1872 0 1300
54356427 S_K_Sami B May 18, 2019, 5:52 p.m. OK GNU C11 TESTS 68 124 7987200 1300
54356643 vjudge5 B May 18, 2019, 5:58 p.m. OK GNU C11 TESTS 68 124 7987200 1300
63053177 BugLeave B Oct. 21, 2019, 4:22 a.m. OK GNU C11 TESTS 68 154 1024000 1300
59069687 luogu_bot2 B Aug. 19, 2019, 3:57 a.m. OK GNU C11 TESTS 68 186 3993600 1300
60956926 FEILI B Sept. 21, 2019, 3:13 a.m. OK GNU C11 TESTS 68 186 17612800 1300
57744966 notsoawesome B July 25, 2019, 12:42 p.m. OK GNU C11 TESTS 68 468 7987200 1300
57744562 notsoawesome B July 25, 2019, 12:34 p.m. OK GNU C11 TESTS 68 498 0 1300
57744841 notsoawesome B July 25, 2019, 12:40 p.m. OK GNU C11 TESTS 68 592 0 1300
59874485 kaiboy B Sept. 1, 2019, 9:46 p.m. OK GNU C11 TESTS 68 686 1024000 1300
69463774 anasbekheit B Jan. 24, 2020, 11:58 a.m. OK GNU C11 TESTS 68 716 1024000 1300
57167570 luogu_bot1 B July 17, 2019, 12:42 a.m. OK GNU C++11 TESTS 68 92 1228800 1300
68393813 luogu_bot5 B Jan. 8, 2020, 9:59 a.m. OK GNU C++11 TESTS 68 92 5017600 1300
57588732 NealCaffrey B July 23, 2019, 11:34 a.m. OK GNU C++11 TESTS 68 92 9011200 1300
69621893 pra45tik B Jan. 27, 2020, 2:43 p.m. OK GNU C++11 TESTS 68 122 1024000 1300
56693959 bj4 B July 8, 2019, 5:59 a.m. OK GNU C++11 TESTS 68 122 1126400 1300
69390791 1775753648 B Jan. 23, 2020, 3:34 a.m. OK GNU C++11 TESTS 68 122 2252800 1300
60577100 sh4 B Sept. 14, 2019, 5:01 p.m. OK GNU C++11 TESTS 68 122 3788800 1300
59411407 luogu_bot3 B Aug. 24, 2019, 4:01 p.m. OK GNU C++11 TESTS 68 122 9011200 1300
59411390 luogu_bot1 B Aug. 24, 2019, 4 p.m. OK GNU C++11 TESTS 68 122 9011200 1300
63631148 Clever_Jimmy B Oct. 28, 2019, 6:26 a.m. OK GNU C++11 TESTS 68 122 11878400 1300
60268380 boxnos B Sept. 8, 2019, 2:22 p.m. OK GNU C++14 TESTS 68 92 1024000 1300
56795978 vjudge1 B July 10, 2019, 12:32 p.m. OK GNU C++14 TESTS 68 122 102400 1300
61580621 gerard.onats B Oct. 1, 2019, 1:27 a.m. OK GNU C++14 TESTS 68 124 102400 1300
69964473 sherlock_holmes_221B B Feb. 1, 2020, 12:21 p.m. OK GNU C++14 TESTS 68 124 102400 1300
69158189 Ma7moud.7amdy B Jan. 19, 2020, 8:46 p.m. OK GNU C++14 TESTS 68 124 102400 1300
68702855 sahaun B Jan. 13, 2020, 10:05 a.m. OK GNU C++14 TESTS 68 124 102400 1300
66446729 AyushKgpian B Dec. 7, 2019, 9:56 a.m. OK GNU C++14 TESTS 68 124 102400 1300
60476845 mkcs B Sept. 13, 2019, 8:36 a.m. OK GNU C++14 TESTS 68 124 102400 1300
58244762 john__wick B Aug. 4, 2019, 4:37 a.m. OK GNU C++14 TESTS 68 124 102400 1300
56819612 vjudge2 B July 10, 2019, 10:14 p.m. OK GNU C++14 TESTS 68 124 102400 1300
57111579 Elaraby B July 15, 2019, 5:42 p.m. OK GNU C++17 TESTS 68 122 102400 1300
69553074 wayne07 B Jan. 26, 2020, 7:25 a.m. OK GNU C++17 TESTS 68 122 1024000 1300
61924956 ITE_Man B Oct. 5, 2019, 2:19 p.m. OK GNU C++17 TESTS 68 124 102400 1300
62359874 dark_horse001 B Oct. 11, 2019, 12:09 p.m. OK GNU C++17 TESTS 68 124 102400 1300
63028982 ChiLongQua B Oct. 20, 2019, 5:33 p.m. OK GNU C++17 TESTS 68 124 102400 1300
64108300 tranquil_coder B Nov. 2, 2019, 5:34 p.m. OK GNU C++17 TESTS 68 124 102400 1300
68614536 jainanshul3863 B Jan. 11, 2020, 5 p.m. OK GNU C++17 TESTS 68 124 102400 1300
69092380 Hariom_Pandey B Jan. 19, 2020, 10:40 a.m. OK GNU C++17 TESTS 68 124 102400 1300
54426048 gusteyker B May 20, 2019, 6:30 p.m. OK GNU C++17 TESTS 68 124 102400 1300
57818299 okwedook B July 26, 2019, 9:04 p.m. OK GNU C++17 TESTS 68 124 102400 1300
56455677 crap_coder B July 3, 2019, 3:39 a.m. OK Go TESTS 68 156 9216000 1300
55934340 ozodbaht8 B June 22, 2019, 1:10 p.m. OK Go TESTS 68 186 4505600 1300
61069934 serhiimazurok B Sept. 22, 2019, 12:22 p.m. OK Go TESTS 68 936 4505600 1300
66514129 godsdice B Dec. 8, 2019, 6:03 p.m. OK Go TESTS 68 964 0 1300
57343690 jmazon B July 19, 2019, 8:41 p.m. OK Haskell TESTS 68 872 5427200 1300
68763821 aedin.clay B Jan. 14, 2020, 9:08 a.m. OK Java 11 TESTS 68 466 0 1300
69268115 ashanksingh1997 B Jan. 21, 2020, 7:28 p.m. OK Java 11 TESTS 68 716 0 1300
64714490 pizzaEater B Nov. 11, 2019, 8:48 p.m. OK Java 11 TESTS 68 842 15769600 1300
69210858 amasoud00 B Jan. 20, 2020, 7:58 p.m. OK Java 11 TESTS 68 872 15769600 1300
69856742 pranavmenon0810 B Jan. 30, 2020, 5:12 p.m. OK Java 11 TESTS 68 1246 0 1300
69603069 arran B Jan. 27, 2020, 8:36 a.m. OK Java 11 TESTS 68 1652 0 1300
68714750 sushant19450 B Jan. 13, 2020, 2:06 p.m. OK Java 11 TESTS 68 1808 15052800 1300
69721887 MHemati B Jan. 29, 2020, 10:59 a.m. OK Java 11 TESTS 68 1840 15052800 1300
66438613 akifpathan B Dec. 7, 2019, 7:10 a.m. OK Java 11 TESTS 68 1900 0 1300
68369830 s.shirmardi B Jan. 7, 2020, 5:19 p.m. OK Java 11 TESTS 68 1964 0 1300
54376730 KharYusuf B May 19, 2019, 9:06 a.m. OK Java 8 TESTS 68 280 0 1300
52782275 mufaddalnaya B April 15, 2019, 2:58 p.m. OK Java 8 TESTS 68 280 0 1300
54361285 shubhammitt B May 18, 2019, 8:51 p.m. OK Java 8 TESTS 68 310 0 1300
53699965 vishal.a.burman23 B May 3, 2019, 9:45 a.m. OK Java 8 TESTS 68 310 0 1300
68452814 Hardikkumar_Katakiya B Jan. 9, 2020, 2:58 p.m. OK Java 8 TESTS 68 312 0 1300
58676533 K_B_C_S B Aug. 12, 2019, 4:46 p.m. OK Java 8 TESTS 68 312 0 1300
62251934 p_unit B Oct. 10, 2019, 9:33 a.m. OK Java 8 TESTS 68 342 0 1300
58256885 doomtrooper B Aug. 4, 2019, 10:28 a.m. OK Java 8 TESTS 68 342 0 1300
55320758 kuxha B June 9, 2019, 4:20 a.m. OK Java 8 TESTS 68 342 2150400 1300
55320817 kuxha B June 9, 2019, 4:24 a.m. OK Java 8 TESTS 68 342 2150400 1300
56418831 codepractice412 B July 2, 2019, 6:20 a.m. OK JavaScript TESTS 68 342 22732800 1300
54720848 mortigenus B May 27, 2019, 5:19 p.m. OK Kotlin TESTS 68 778 716800 1300
56052409 fc-lib-xyz B June 25, 2019, 8:01 p.m. OK Kotlin TESTS 68 934 7680000 1300
69701288 slemus B Jan. 29, 2020, 12:42 a.m. OK Kotlin TESTS 68 1716 8908800 1300
56483408 _AhmedEssam B July 3, 2019, 5:12 p.m. OK Kotlin TESTS 68 1934 13721600 1300
59877150 david_varela B Sept. 2, 2019, 1:03 a.m. OK Kotlin TESTS 68 1934 62156800 1300
65603610 dj_contest B Nov. 23, 2019, 7:20 p.m. OK Mono C# TESTS 68 310 39424000 1300
54258354 tym32167 B May 16, 2019, 10:03 p.m. OK Mono C# TESTS 68 840 30412800 1300
60282446 BigRussianBoss1 B Sept. 8, 2019, 10:06 p.m. OK Mono C# TESTS 68 842 16793600 1300
61564643 Derlados B Sept. 30, 2019, 4:42 p.m. OK Mono C# TESTS 68 872 15667200 1300
65598650 dj_contest B Nov. 23, 2019, 4:58 p.m. OK Mono C# TESTS 68 996 21196800 1300
58419346 Mona_Bindary B Aug. 7, 2019, 7 a.m. OK Mono C# TESTS 68 1340 15360000 1300
66784703 kimo92 B Dec. 13, 2019, 1:15 p.m. OK Mono C# TESTS 68 1652 15257600 1300
63733962 boookva B Oct. 29, 2019, 2:48 p.m. OK Mono C# TESTS 68 1996 22835200 1300
53296164 vjudge2 B April 25, 2019, 5:40 p.m. OK MS C++ TESTS 68 154 1024000 1300
57754305 vjudge2 B July 25, 2019, 3:45 p.m. OK MS C++ TESTS 68 186 15155200 1300
55291371 vjudge5 B June 8, 2019, 7:51 a.m. OK MS C++ TESTS 68 248 1024000 1300
55291279 ZA139 B June 8, 2019, 7:49 a.m. OK MS C++ TESTS 68 248 1024000 1300
55423359 vjudge1 B June 11, 2019, 7:44 a.m. OK MS C++ TESTS 68 374 30105600 1300
55423298 vjudge3 B June 11, 2019, 7:42 a.m. OK MS C++ TESTS 68 404 30105600 1300
69937407 vjudge1 B Feb. 1, 2020, 4:36 a.m. OK MS C++ TESTS 68 624 0 1300
55290769 vjudge2 B June 8, 2019, 7:35 a.m. OK MS C++ TESTS 68 842 1024000 1300
69933700 vjudge2 B Feb. 1, 2020, 2:14 a.m. OK MS C++ TESTS 68 842 1024000 1300
54218389 vjudge5 B May 16, 2019, 1:04 a.m. OK MS C++ TESTS 68 842 3993600 1300
53694563 Soumik24 B May 3, 2019, 7 a.m. OK MS C++ 2017 TESTS 68 124 3993600 1300
54165549 Soumik24 B May 15, 2019, 8:32 a.m. OK MS C++ 2017 TESTS 68 154 3993600 1300
57249720 vjudge5 B July 17, 2019, 9:43 p.m. OK MS C++ 2017 TESTS 68 156 1740800 1300
69933254 vjudge3 B Feb. 1, 2020, 1:51 a.m. OK MS C++ 2017 TESTS 68 156 3993600 1300
67067041 lostemiy B Dec. 17, 2019, 11:29 a.m. OK MS C++ 2017 TESTS 68 156 5017600 1300
67304353 vjudge4 B Dec. 20, 2019, 8:18 p.m. OK MS C++ 2017 TESTS 68 156 5632000 1300
53694295 Soumik24 B May 3, 2019, 6:51 a.m. OK MS C++ 2017 TESTS 68 186 3993600 1300
60251846 shakil77977 B Sept. 8, 2019, 7:15 a.m. OK MS C++ 2017 TESTS 68 186 24064000 1300
60191585 vjudge4 B Sept. 6, 2019, 9:52 p.m. OK MS C++ 2017 TESTS 68 216 3993600 1300
55302077 Still_Theory B June 8, 2019, 12:28 p.m. OK MS C++ 2017 TESTS 68 278 1024000 1300
68112195 Naick B Jan. 3, 2020, 10 a.m. OK Node.js TESTS 68 1996 39628800 1300
55696195 yumtam B June 17, 2019, 10:23 p.m. OK PyPy 2 TESTS 68 560 20889600 1300
53804862 Mansurbek B May 5, 2019, 11:02 p.m. OK PyPy 3 TESTS 68 748 26828800 1300
58831492 essi B Aug. 14, 2019, 6:08 p.m. OK PyPy 3 TESTS 68 810 21196800 1300
54262377 lIn_nIl B May 17, 2019, 3:05 a.m. OK PyPy 3 TESTS 68 810 27545600 1300
60779041 somnath796 B Sept. 18, 2019, 3:34 p.m. OK PyPy 3 TESTS 68 840 21401600 1300
65960691 vikrantsec B Nov. 29, 2019, 2:36 p.m. OK PyPy 3 TESTS 68 840 21913600 1300
55942050 goyal.amanrocks B June 22, 2019, 5:14 p.m. OK PyPy 3 TESTS 68 840 25702400 1300
53288561 yfo B April 25, 2019, 2:48 p.m. OK PyPy 3 TESTS 68 840 25804800 1300
56523567 NickBa B July 4, 2019, 4:05 p.m. OK PyPy 3 TESTS 68 840 28569600 1300
58831426 essi B Aug. 14, 2019, 6:06 p.m. OK PyPy 3 TESTS 68 842 21094400 1300
58836859 MatheusAlves B Aug. 14, 2019, 9:43 p.m. OK PyPy 3 TESTS 68 842 23654400 1300
54089083 mohit_11615192 B May 14, 2019, 9:27 a.m. OK Python 2 TESTS 68 1060 28774400 1300
52799180 vjudge4 B April 16, 2019, 1:02 a.m. OK Python 2 TESTS 68 1122 30720000 1300
52873471 vjudge1 B April 16, 2019, 6:28 p.m. OK Python 2 TESTS 68 1152 31744000 1300
52873410 marsjr B April 16, 2019, 6:27 p.m. OK Python 2 TESTS 68 1152 31744000 1300
64539149 pktyagi1 B Nov. 8, 2019, 5:59 p.m. OK Python 2 TESTS 68 1154 25804800 1300
52760659 vjudge4 B April 14, 2019, 8:25 p.m. OK Python 2 TESTS 68 1184 12595200 1300
54576822 vjudge5 B May 25, 2019, 12:06 a.m. OK Python 2 TESTS 68 1184 19046400 1300
52882852 tatianeaf B April 17, 2019, 2:18 a.m. OK Python 2 TESTS 68 1184 31744000 1300
61249013 vutalanm B Sept. 25, 2019, 7:27 a.m. OK Python 2 TESTS 68 1184 40755200 1300
60135753 vjudge5 B Sept. 5, 2019, 6:12 p.m. OK Python 2 TESTS 68 1214 19046400 1300
57472076 zenithzyf B July 21, 2019, 6:44 p.m. OK Python 3 TESTS 68 780 12390400 1300
60140418 condado B Sept. 5, 2019, 7:56 p.m. OK Python 3 TESTS 68 810 11366400 1300
67586087 naveenprolific123 B Dec. 25, 2019, 8:20 a.m. OK Python 3 TESTS 68 904 10137600 1300
67585367 naveenprolific123 B Dec. 25, 2019, 8:03 a.m. OK Python 3 TESTS 68 904 10240000 1300
60140435 vjudge3 B Sept. 5, 2019, 7:56 p.m. OK Python 3 TESTS 68 904 11468800 1300
64895034 NyX B Nov. 14, 2019, 4:14 p.m. OK Python 3 TESTS 68 904 12185600 1300
62952067 __vba B Oct. 19, 2019, 7:08 p.m. OK Python 3 TESTS 68 904 13926400 1300
67586127 naveenprolific123 B Dec. 25, 2019, 8:21 a.m. OK Python 3 TESTS 68 934 10444800 1300
57473181 thinkingfl B July 21, 2019, 7:27 p.m. OK Python 3 TESTS 68 964 14643200 1300
62075994 LadyPython B Oct. 7, 2019, 6:27 p.m. OK Python 3 TESTS 68 966 13312000 1300
56675336 zura1547 B July 7, 2019, 3:12 p.m. OK Rust TESTS 68 92 4198400 1300
55668949 tuna_salad B June 17, 2019, 6:16 a.m. OK Rust TESTS 68 342 18432000 1300
60191214 tpoeiras B Sept. 6, 2019, 9:33 p.m. OK Rust TESTS 68 1840 3891200 1300
60231127 matijap B Sept. 7, 2019, 4:31 p.m. OK Rust TESTS 68 1872 5222400 1300
60190511 tpoeiras B Sept. 6, 2019, 9:01 p.m. OK Rust TESTS 68 1902 4403200 1300
60190236 tpoeiras B Sept. 6, 2019, 8:50 p.m. OK Rust TESTS 68 1902 4403200 1300
56673760 zura1547 B July 7, 2019, 2:24 p.m. OK Rust TESTS 68 1902 6656000 1300
64095835 afentev B Nov. 2, 2019, 1:52 p.m. OK Rust TESTS 68 1932 3891200 1300
56674086 zura1547 B July 7, 2019, 2:34 p.m. OK Rust TESTS 68 1934 4096000 1300
60189975 tpoeiras B Sept. 6, 2019, 8:40 p.m. OK Rust TESTS 68 1964 3891200 1300
63405788 Mocker B Oct. 25, 2019, 8:18 p.m. OK Scala TESTS 68 1152 8704000 1300

remove filters

Back to search problems