Codeforces Global Round 6

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
1266 Codeforces Global Round 6 FINISHED False 9000 155228099 Dec. 17, 2019, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15149 ) B Dice Tower PROGRAMMING constructive algorithms math 1000

B'Bob is playing with 6 -sided dice. A net of such standard cube is shown below. He has an unlimited supply of these dice and wants to build a tower by stacking multiple dice on top of each other, while choosing the orientation of each dice. Then he counts the number of visible pips on the faces of the dice. For example, the number of visible pips on the tower below is 29 -- the number visible on the top is 1 , from the south 5 and 3 , from the west 4 and 2 , from the north 2 and 4 and from the east 3 and 5 . The one at the bottom and the two sixes by which the dice are touching are not visible, so they are not counted towards total. Bob also has t favourite integers x_i , and for every such integer his goal is to build such a tower that the number of visible pips is exactly x_i . For each of Bob 's favourite integers determine whether it is possible to build a tower that has exactly that many visible pips. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of favourite integers of Bob. The second line contains t space-separated integers x_i ( 1 <= q x_i <= q 10^{18} ) -- Bob 's favourite integers. For each of Bob 's favourite integers, output "YES" if it is possible to build the tower, or "NO" otherwise (quotes for clarity). The first example is mentioned in the problem statement. In the second example, one can build the tower by flipping the top dice from the previous tower. In the third example, one can use a single die that has 5 on top. The fourth example is impossible. '...

Tutorials

Codeforces Global Round 6 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
67121299 RadioShrek B Dec. 17, 2019, 6:27 p.m. OK Clang++17 Diagnostics TESTS 6 46 0 1000
67084717 fluffyowl B Dec. 17, 2019, 3:22 p.m. OK D TESTS 6 15 4198400 1000
67094160 iica B Dec. 17, 2019, 3:43 p.m. OK D TESTS 6 30 4300800 1000
67088363 Gassa B Dec. 17, 2019, 3:29 p.m. OK D TESTS 6 31 0 1000
67086396 hos.lyric B Dec. 17, 2019, 3:25 p.m. OK D TESTS 6 31 4198400 1000
67084818 daut-dlang B Dec. 17, 2019, 3:22 p.m. OK D TESTS 6 31 4198400 1000
67084814 ruban B Dec. 17, 2019, 3:22 p.m. OK Delphi TESTS 6 31 13721600 1000
67095257 Dbvivi B Dec. 17, 2019, 3:46 p.m. OK FPC TESTS 6 30 0 1000
67088638 LaSWeeG B Dec. 17, 2019, 3:29 p.m. OK FPC TESTS 6 31 0 1000
67871867 hp_stormbreaker21 B Dec. 29, 2019, 11:47 a.m. OK GNU C11 TESTS 6 15 0 1000
67679954 stella_1 B Dec. 27, 2019, 5:43 a.m. OK GNU C11 TESTS 6 15 0 1000
67187559 Piccacu B Dec. 19, 2019, 5:36 a.m. OK GNU C11 TESTS 6 15 0 1000
67168513 Stratonov_16 B Dec. 18, 2019, 4:25 p.m. OK GNU C11 TESTS 6 15 0 1000
67134531 musician44 B Dec. 18, 2019, 3:11 a.m. OK GNU C11 TESTS 6 15 0 1000
67130020 Mad_proton B Dec. 17, 2019, 10:50 p.m. OK GNU C11 TESTS 6 15 0 1000
67130006 Admirer.secret B Dec. 17, 2019, 10:49 p.m. OK GNU C11 TESTS 6 15 0 1000
67123485 dineshg B Dec. 17, 2019, 7:03 p.m. OK GNU C11 TESTS 6 15 0 1000
67121223 kaiboy B Dec. 17, 2019, 6:26 p.m. OK GNU C11 TESTS 6 15 0 1000
69407341 Ngc19 B Jan. 23, 2020, 11:19 a.m. OK GNU C11 TESTS 6 15 0 1000
68629774 zx2003 B Jan. 12, 2020, 1:59 a.m. OK GNU C++11 TESTS 6 15 0 1000
68591530 vjudge4 B Jan. 11, 2020, 12:48 p.m. OK GNU C++11 TESTS 6 15 0 1000
69576788 Farabi1122 B Jan. 26, 2020, 3:51 p.m. OK GNU C++11 TESTS 6 15 0 1000
69277009 Nake1 B Jan. 22, 2020, 3:05 a.m. OK GNU C++11 TESTS 6 15 0 1000
69084128 razdeep B Jan. 19, 2020, 7:38 a.m. OK GNU C++11 TESTS 6 15 0 1000
68891135 beacon_cwk B Jan. 16, 2020, 2:19 a.m. OK GNU C++11 TESTS 6 15 0 1000
68870588 sudhirnandlalpal B Jan. 15, 2020, 3:03 p.m. OK GNU C++11 TESTS 6 15 0 1000
68828157 koadma B Jan. 14, 2020, 8:14 p.m. OK GNU C++11 TESTS 6 15 0 1000
68754545 CQUzbx B Jan. 14, 2020, 7:50 a.m. OK GNU C++11 TESTS 6 15 0 1000
68746883 ioc_20 B Jan. 14, 2020, 5:04 a.m. OK GNU C++11 TESTS 6 15 0 1000
67083917 tyrant_2 B Dec. 17, 2019, 3:20 p.m. OK GNU C++14 TESTS 6 0 0 1000
69550482 nurserabcde B Jan. 26, 2020, 6:11 a.m. OK GNU C++14 TESTS 6 15 0 1000
68986034 NguyenfromVN B Jan. 17, 2020, 12:31 p.m. OK GNU C++14 TESTS 6 15 0 1000
68995945 yuvi0403 B Jan. 17, 2020, 5:23 p.m. OK GNU C++14 TESTS 6 15 0 1000
69001528 PC_2.0 B Jan. 17, 2020, 7:50 p.m. OK GNU C++14 TESTS 6 15 0 1000
69028236 vish143 B Jan. 18, 2020, 7:36 a.m. OK GNU C++14 TESTS 6 15 0 1000
69050840 OIerwanhong B Jan. 18, 2020, 12:40 p.m. OK GNU C++14 TESTS 6 15 0 1000
69242266 arv77 B Jan. 21, 2020, 11:48 a.m. OK GNU C++14 TESTS 6 15 0 1000
69296120 Arc_1811 B Jan. 22, 2020, 12:16 p.m. OK GNU C++14 TESTS 6 15 0 1000
69439925 Timer_011 B Jan. 23, 2020, 8:51 p.m. OK GNU C++14 TESTS 6 15 0 1000
67681276 gunjan768 B Dec. 27, 2019, 6:32 a.m. OK GNU C++17 TESTS 6 0 0 1000
69582633 ironic B Jan. 26, 2020, 6 p.m. OK GNU C++17 TESTS 6 15 0 1000
69577067 dsomni B Jan. 26, 2020, 3:55 p.m. OK GNU C++17 TESTS 6 15 0 1000
69554202 QFYNH B Jan. 26, 2020, 8 a.m. OK GNU C++17 TESTS 6 15 0 1000
69537082 virushika B Jan. 25, 2020, 7:21 p.m. OK GNU C++17 TESTS 6 15 0 1000
69507834 ashishasm B Jan. 25, 2020, 9:22 a.m. OK GNU C++17 TESTS 6 15 0 1000
69459106 KR1shna B Jan. 24, 2020, 9:54 a.m. OK GNU C++17 TESTS 6 15 0 1000
69302635 PersistentProgrammer B Jan. 22, 2020, 2:18 p.m. OK GNU C++17 TESTS 6 15 0 1000
69190059 Anand-K-S B Jan. 20, 2020, 1:14 p.m. OK GNU C++17 TESTS 6 15 0 1000
69186280 peroon B Jan. 20, 2020, 12:03 p.m. OK GNU C++17 TESTS 6 15 0 1000
68006179 amarjeetanand B Dec. 31, 2019, 1:18 p.m. OK Go TESTS 6 30 0 1000
67087628 caidodo0_0 B Dec. 17, 2019, 3:27 p.m. OK Go TESTS 6 30 0 1000
67200588 stasomega1 B Dec. 19, 2019, 10:46 a.m. OK Go TESTS 6 31 0 1000
67196842 xiongxin B Dec. 19, 2019, 9:24 a.m. OK Go TESTS 6 77 0 1000
67105628 Aidar.Babanov B Dec. 17, 2019, 4:21 p.m. OK Go TESTS 6 93 0 1000
69575902 Andrey_R B Jan. 26, 2020, 3:33 p.m. OK Haskell TESTS 6 30 102400 1000
67182517 Russell_Emerine B Dec. 19, 2019, 1:14 a.m. OK Haskell TESTS 6 30 102400 1000
68448747 TheSawan B Jan. 9, 2020, 1:36 p.m. OK Java 11 TESTS 6 156 0 1000
67159430 Azakarka B Dec. 18, 2019, 1:30 p.m. OK Java 11 TESTS 6 170 0 1000
67873014 serafimkoo B Dec. 29, 2019, 12:14 p.m. OK Java 11 TESTS 6 171 0 1000
67094215 Oom B Dec. 17, 2019, 3:43 p.m. OK Java 11 TESTS 6 171 0 1000
67086208 avijit_agarwal B Dec. 17, 2019, 3:25 p.m. OK Java 11 TESTS 6 171 0 1000
67084684 potatmen B Dec. 17, 2019, 3:22 p.m. OK Java 11 TESTS 6 171 0 1000
67080008 eatmore B Dec. 17, 2019, 3:13 p.m. OK Java 11 TESTS 6 171 0 1000
68098366 Anonymous B Jan. 2, 2020, 11:09 p.m. OK Java 11 TESTS 6 186 0 1000
67144972 satya_p54 B Dec. 18, 2019, 8:27 a.m. OK Java 11 TESTS 6 186 0 1000
67083966 Musin B Dec. 17, 2019, 3:20 p.m. OK Java 11 TESTS 6 186 0 1000
67472231 niteshgowda B Dec. 23, 2019, 1:11 p.m. OK Java 8 TESTS 6 93 0 1000
67091172 rahsutamrev B Dec. 17, 2019, 3:35 p.m. OK Java 8 TESTS 6 93 0 1000
67090382 martins B Dec. 17, 2019, 3:33 p.m. OK Java 8 TESTS 6 93 0 1000
67282392 luchy0120 B Dec. 20, 2019, 1:24 p.m. OK Java 8 TESTS 6 108 0 1000
67147254 garg_vibhor B Dec. 18, 2019, 9:21 a.m. OK Java 8 TESTS 6 108 0 1000
67145707 perplex B Dec. 18, 2019, 8:45 a.m. OK Java 8 TESTS 6 108 0 1000
67140485 jenish9599 B Dec. 18, 2019, 6:32 a.m. OK Java 8 TESTS 6 108 0 1000
67124924 Agnimandur B Dec. 17, 2019, 7:37 p.m. OK Java 8 TESTS 6 108 0 1000
67114693 sparrow2 B Dec. 17, 2019, 5:07 p.m. OK Java 8 TESTS 6 108 0 1000
67108664 lzhang B Dec. 17, 2019, 4:35 p.m. OK Java 8 TESTS 6 108 0 1000
67520156 vjudge1 B Dec. 24, 2019, 12:09 p.m. OK Kotlin TESTS 6 109 0 1000
67134879 Spheniscine B Dec. 18, 2019, 3:26 a.m. OK Kotlin TESTS 6 109 0 1000
67519898 vjudge4 B Dec. 24, 2019, 12:04 p.m. OK Kotlin TESTS 6 124 0 1000
67212703 duckladydinh B Dec. 19, 2019, 2:38 p.m. OK Kotlin TESTS 6 124 0 1000
67134833 Spheniscine B Dec. 18, 2019, 3:24 a.m. OK Kotlin TESTS 6 124 0 1000
67520351 vjudge2 B Dec. 24, 2019, 12:13 p.m. OK Kotlin TESTS 6 140 0 1000
67521701 vjudge4 B Dec. 24, 2019, 12:38 p.m. OK Kotlin TESTS 6 155 0 1000
67780621 a11eca B Dec. 28, 2019, 10:49 a.m. OK Kotlin TESTS 6 155 0 1000
67129773 Tlatoani B Dec. 17, 2019, 10:34 p.m. OK Kotlin TESTS 6 155 0 1000
67182233 tuanio B Dec. 19, 2019, 12:51 a.m. OK Kotlin TESTS 6 156 204800 1000
67269863 TRR B Dec. 20, 2019, 7:44 a.m. OK Mono C# TESTS 6 46 204800 1000
67118683 Ruban_Denic B Dec. 17, 2019, 5:31 p.m. OK Mono C# TESTS 6 46 204800 1000
67122331 vedroboev B Dec. 17, 2019, 6:42 p.m. OK Mono C# TESTS 6 46 204800 1000
67090088 mban259 B Dec. 17, 2019, 3:32 p.m. OK Mono C# TESTS 6 46 204800 1000
67101513 Metwally92 B Dec. 17, 2019, 4:05 p.m. OK Mono C# TESTS 6 46 204800 1000
67629851 camypaper B Dec. 26, 2019, 2:51 a.m. OK Mono C# TESTS 6 46 50278400 1000
67089225 sergmel B Dec. 17, 2019, 3:30 p.m. OK Mono C# TESTS 6 61 307200 1000
67117668 ravinem1 B Dec. 17, 2019, 5:25 p.m. OK Mono C# TESTS 6 61 3891200 1000
67097012 _DAC_ B Dec. 17, 2019, 3:51 p.m. OK Mono C# TESTS 6 61 3891200 1000
67092000 tomomo2b2 B Dec. 17, 2019, 3:37 p.m. OK Mono C# TESTS 6 61 3891200 1000
69399605 vjudge2 B Jan. 23, 2020, 7:56 a.m. OK MS C++ TESTS 6 15 0 1000
67207935 vjudge3 B Dec. 19, 2019, 1:05 p.m. OK MS C++ TESTS 6 15 0 1000
68584656 vjudge1 B Jan. 11, 2020, 10:57 a.m. OK MS C++ TESTS 6 15 0 1000
68630875 vjudge4 B Jan. 12, 2020, 2:43 a.m. OK MS C++ TESTS 6 15 0 1000
67087839 math957963 B Dec. 17, 2019, 3:28 p.m. OK MS C++ TESTS 6 30 0 1000
67194772 platter B Dec. 19, 2019, 8:35 a.m. OK MS C++ TESTS 6 30 0 1000
68584012 vjudge1 B Jan. 11, 2020, 10:47 a.m. OK MS C++ TESTS 6 31 0 1000
68586019 vjudge4 B Jan. 11, 2020, 11:17 a.m. OK MS C++ TESTS 6 31 0 1000
67089552 tarattata1 B Dec. 17, 2019, 3:31 p.m. OK MS C++ TESTS 6 31 0 1000
69439971 devashishmandrawalia B Jan. 23, 2020, 8:52 p.m. OK MS C++ 2017 TESTS 6 15 0 1000
67459376 extremum B Dec. 23, 2019, 8:29 a.m. OK MS C++ 2017 TESTS 6 15 0 1000
67268716 thaizhenleng B Dec. 20, 2019, 7:16 a.m. OK MS C++ 2017 TESTS 6 15 0 1000
67091977 ningBr B Dec. 17, 2019, 3:37 p.m. OK MS C++ 2017 TESTS 6 15 0 1000
67083543 dkyun B Dec. 17, 2019, 3:20 p.m. OK MS C++ 2017 TESTS 6 15 0 1000
67082641 Sem_1337 B Dec. 17, 2019, 3:18 p.m. OK MS C++ 2017 TESTS 6 15 0 1000
69159583 Jorge160895 B Jan. 19, 2020, 9:56 p.m. OK MS C++ 2017 TESTS 6 15 0 1000
68419713 Ghosto_00 B Jan. 8, 2020, 9 p.m. OK MS C++ 2017 TESTS 6 15 307200 1000
67626927 Esteban0225 B Dec. 25, 2019, 10:44 p.m. OK MS C++ 2017 TESTS 6 15 307200 1000
67145675 sladkayaKlubnichka B Dec. 18, 2019, 8:44 a.m. OK MS C++ 2017 TESTS 6 30 0 1000
67091444 shivam1420 B Dec. 17, 2019, 3:36 p.m. OK Node.js TESTS 6 171 1331200 1000
67116274 tomadimitrie B Dec. 17, 2019, 5:17 p.m. OK Node.js TESTS 6 202 4505600 1000
68994117 spartavp B Jan. 17, 2020, 4:30 p.m. OK PascalABC.NET TESTS 6 374 0 1000
67088263 rsFalse B Dec. 17, 2019, 3:29 p.m. OK Perl TESTS 6 155 3686400 1000
67088666 parasmehan123 B Dec. 17, 2019, 3:29 p.m. OK PyPy 2 TESTS 6 140 307200 1000
67083187 MVP B Dec. 17, 2019, 3:19 p.m. OK PyPy 2 TESTS 6 140 307200 1000
67079878 bcollet B Dec. 17, 2019, 3:13 p.m. OK PyPy 2 TESTS 6 140 307200 1000
67085546 Mukundan314 B Dec. 17, 2019, 3:23 p.m. OK PyPy 2 TESTS 6 155 102400 1000
67110731 cybertron1609 B Dec. 17, 2019, 4:45 p.m. OK PyPy 2 TESTS 6 155 307200 1000
67079833 alexwice B Dec. 17, 2019, 3:13 p.m. OK PyPy 2 TESTS 6 155 307200 1000
67080875 akifpatel B Dec. 17, 2019, 3:15 p.m. OK PyPy 2 TESTS 6 155 1433600 1000
67096909 Pyar.Mahobat.Dhoka.Hai B Dec. 17, 2019, 3:50 p.m. OK PyPy 2 TESTS 6 155 1638400 1000
67094824 iamprayush B Dec. 17, 2019, 3:44 p.m. OK PyPy 2 TESTS 6 156 1536000 1000
67082988 pajenegod B Dec. 17, 2019, 3:19 p.m. OK PyPy 2 TESTS 6 171 1433600 1000
69472569 xiema B Jan. 24, 2020, 3:02 p.m. OK PyPy 3 TESTS 6 139 102400 1000
68095162 SinKing B Jan. 2, 2020, 8:15 p.m. OK PyPy 3 TESTS 6 139 1843200 1000
67082687 shiv1470 B Dec. 17, 2019, 3:18 p.m. OK PyPy 3 TESTS 6 139 1843200 1000
68034220 raj1307 B Jan. 1, 2020, 11:07 a.m. OK PyPy 3 TESTS 6 140 1638400 1000
69001209 heath_cliff B Jan. 17, 2020, 7:42 p.m. OK PyPy 3 TESTS 6 140 1740800 1000
67129675 DavidRh B Dec. 17, 2019, 10:29 p.m. OK PyPy 3 TESTS 6 140 1740800 1000
67105535 rushil231100 B Dec. 17, 2019, 4:20 p.m. OK PyPy 3 TESTS 6 140 1740800 1000
67081460 Riolku B Dec. 17, 2019, 3:16 p.m. OK PyPy 3 TESTS 6 140 1740800 1000
68125400 vipenl26 B Jan. 3, 2020, 2:59 p.m. OK PyPy 3 TESTS 6 140 1843200 1000
68105761 HarendraSingh22 B Jan. 3, 2020, 6:57 a.m. OK PyPy 3 TESTS 6 140 1843200 1000
69536382 vjudge5 B Jan. 25, 2020, 7:03 p.m. OK Python 2 TESTS 6 171 0 1000
67911123 shirsha B Dec. 29, 2019, 3:26 p.m. OK Python 2 TESTS 6 171 0 1000
67457527 SoSooding B Dec. 23, 2019, 7:38 a.m. OK Python 2 TESTS 6 171 0 1000
67100267 grayGoose B Dec. 17, 2019, 4:01 p.m. OK Python 2 TESTS 6 171 0 1000
67080711 nwi B Dec. 17, 2019, 3:15 p.m. OK Python 2 TESTS 6 171 0 1000
67160877 Himanshu77 B Dec. 18, 2019, 1:55 p.m. OK Python 2 TESTS 6 186 0 1000
67107826 elistark B Dec. 17, 2019, 4:31 p.m. OK Python 2 TESTS 6 186 0 1000
67088830 ashu249 B Dec. 17, 2019, 3:30 p.m. OK Python 2 TESTS 6 187 0 1000
69527384 8055 B Jan. 25, 2020, 3:38 p.m. OK Python 3 TESTS 6 93 307200 1000
69182119 cs1g B Jan. 20, 2020, 10:35 a.m. OK Python 3 TESTS 6 93 307200 1000
68495199 blue_edge B Jan. 10, 2020, 1:12 p.m. OK Python 3 TESTS 6 93 307200 1000
68438038 DaMiraCode B Jan. 9, 2020, 9:46 a.m. OK Python 3 TESTS 6 93 307200 1000
68437963 DaMiraCode B Jan. 9, 2020, 9:44 a.m. OK Python 3 TESTS 6 93 307200 1000
68415089 jch03 B Jan. 8, 2020, 6:31 p.m. OK Python 3 TESTS 6 93 307200 1000
67694863 KamilRizatdinov B Dec. 27, 2019, 12:35 p.m. OK Python 3 TESTS 6 93 307200 1000
67281291 heronry B Dec. 20, 2019, 1:08 p.m. OK Python 3 TESTS 6 93 307200 1000
67230581 diquentys B Dec. 19, 2019, 3:43 p.m. OK Python 3 TESTS 6 93 409600 1000
67202681 lyhthienan B Dec. 19, 2019, 11:26 a.m. OK Python 3 TESTS 6 93 409600 1000
67082428 sansen B Dec. 17, 2019, 3:18 p.m. OK Rust TESTS 6 15 102400 1000
67133994 kobae964 B Dec. 18, 2019, 2:42 a.m. OK Rust TESTS 6 15 307200 1000
67081001 tuna_salad B Dec. 17, 2019, 3:15 p.m. OK Rust TESTS 6 31 307200 1000
67102585 manta1130 B Dec. 17, 2019, 4:09 p.m. OK Rust TESTS 6 46 0 1000
67109381 Valdem B Dec. 17, 2019, 4:38 p.m. OK Rust TESTS 6 62 0 1000
67090514 wrick B Dec. 17, 2019, 3:33 p.m. OK Scala TESTS 6 498 0 1000

remove filters

Back to search problems