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.
Problems
B"PizzaForces is Petya's favorite pizzeria. PizzaForces makes and sells pizzas of three sizes: small pizzas consist of 6 slices, medium ones consist of 8 slices, and large pizzas consist of 10 slices each. Baking them takes 15 , 20 and 25 minutes, respectively. Petya's birthday is today, and n of his friends will come, so he decided to make an order from his favorite pizzeria. Petya wants to order so much pizza that each of his friends gets at least one slice of pizza. The cooking time of the order is the total baking time of all the pizzas in the order. Your task is to determine the minimum number of minutes that is needed to make pizzas containing at least n slices in total. For example: The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. Each testcase consists of a single line that contains a single integer n ( 1 <= n <= 10^{16} ) -- the number of Petya's friends. For each testcase, print one integer -- the minimum number of minutes that is needed to bake pizzas containing at least n slices in total. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
124358978 |
gxlois |
A |
July 30, 2021, 7:06 p.m. |
OK |
D |
TESTS |
3 |
15 |
3686400 |
|
900 |
124374889 |
ThursdayLoser |
A |
July 31, 2021, 1:07 a.m. |
OK |
GNU C11 |
TESTS |
3 |
46 |
3686400 |
|
900 |
124375812 |
cool_ritik |
A |
July 31, 2021, 1:33 a.m. |
OK |
GNU C11 |
TESTS |
3 |
46 |
3686400 |
|
900 |
124386295 |
ayushpanday612 |
A |
July 31, 2021, 4:52 a.m. |
OK |
GNU C11 |
TESTS |
3 |
46 |
3686400 |
|
900 |
124346961 |
H1tman_0077 |
A |
July 30, 2021, 4:57 p.m. |
OK |
GNU C11 |
TESTS |
3 |
46 |
3686400 |
|
900 |
124381564 |
Kingjoke |
A |
July 31, 2021, 3:29 a.m. |
OK |
GNU C11 |
TESTS |
3 |
62 |
3686400 |
|
900 |
124346004 |
sandbad |
A |
July 30, 2021, 4:51 p.m. |
OK |
GNU C11 |
TESTS |
3 |
78 |
3686400 |
|
900 |
124339139 |
abi200415 |
A |
July 30, 2021, 4:28 p.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124346075 |
Thauhid_13 |
A |
July 30, 2021, 4:51 p.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124378744 |
BUM-YJL |
A |
July 31, 2021, 2:37 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124378549 |
NXYorz |
A |
July 31, 2021, 2:33 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124377030 |
bkifhr10 |
A |
July 31, 2021, 2:01 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124388675 |
chef_of_mint |
A |
July 31, 2021, 5:27 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3891200 |
|
900 |
124389229 |
victor.gao |
A |
July 31, 2021, 5:35 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3891200 |
|
900 |
124387789 |
ducati |
A |
July 31, 2021, 5:14 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3891200 |
|
900 |
124387953 |
a1214034447 |
A |
July 31, 2021, 5:17 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3891200 |
|
900 |
124388144 |
airbust |
A |
July 31, 2021, 5:19 a.m. |
OK |
GNU C++11 |
TESTS |
3 |
15 |
3891200 |
|
900 |
124359696 |
soumya21 |
A |
July 30, 2021, 7:15 p.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124345303 |
_pardesi_ |
A |
July 30, 2021, 4:47 p.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124357742 |
Saksham_Sahgal |
A |
July 30, 2021, 6:49 p.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124381252 |
Kirito_Rivaille |
A |
July 31, 2021, 3:23 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124390083 |
utkalsinha |
A |
July 31, 2021, 5:46 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124390326 |
utkalsinha |
A |
July 31, 2021, 5:49 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124390228 |
bijalwan_2000 |
A |
July 31, 2021, 5:48 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124390503 |
utkalsinha |
A |
July 31, 2021, 5:51 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124390351 |
Mystic_1 |
A |
July 31, 2021, 5:49 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124390167 |
utkalsinha |
A |
July 31, 2021, 5:47 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124347878 |
govindtomariiit |
A |
July 30, 2021, 5:04 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124384760 |
TomAndJerryFan |
A |
July 31, 2021, 4:27 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124379241 |
dpduy123 |
A |
July 31, 2021, 2:47 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124347824 |
Aktgb_31 |
A |
July 30, 2021, 5:04 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124370738 |
samarpitdua24 |
A |
July 30, 2021, 10:31 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124347501 |
trustyourcode |
A |
July 30, 2021, 5:01 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124383328 |
red-coder |
A |
July 31, 2021, 4:01 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124358035 |
ajaykN017 |
A |
July 30, 2021, 6:53 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124389702 |
mospain |
A |
July 31, 2021, 5:41 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124362077 |
potatoninja22 |
A |
July 30, 2021, 7:45 p.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
3788800 |
|
900 |
124384289 |
vjudge1 |
A |
July 31, 2021, 4:19 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
4198400 |
|
900 |
124352797 |
Anish_aak |
A |
July 30, 2021, 5:51 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
4300800 |
|
900 |
124345333 |
_iamsanket |
A |
July 30, 2021, 4:47 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
4300800 |
|
900 |
124356776 |
MiinaMagdy |
A |
July 30, 2021, 6:37 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
4300800 |
|
900 |
124356065 |
khushi_26 |
A |
July 30, 2021, 6:28 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
4300800 |
|
900 |
124389074 |
AK-I-RA |
A |
July 31, 2021, 5:33 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
15 |
4300800 |
|
900 |
124390591 |
CAPTAIN_LEVIII |
A |
July 31, 2021, 5:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
15 |
4300800 |
|
900 |
124389089 |
Wasifkader |
A |
July 31, 2021, 5:33 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
15 |
4300800 |
|
900 |
124389056 |
Koying |
A |
July 31, 2021, 5:32 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
15 |
4300800 |
|
900 |
124388956 |
Auligay |
A |
July 31, 2021, 5:31 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
15 |
4300800 |
|
900 |
124349829 |
mr_white07 |
A |
July 30, 2021, 5:20 p.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
23654400 |
|
900 |
124386540 |
KarMa_ |
A |
July 31, 2021, 4:56 a.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
23859200 |
|
900 |
124353868 |
MohammedBasioni |
A |
July 30, 2021, 6:04 p.m. |
OK |
Java 11 |
TESTS |
3 |
170 |
23859200 |
|
900 |
124349999 |
kk1255 |
A |
July 30, 2021, 5:22 p.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
23756800 |
|
900 |
124348466 |
FLORINNN |
A |
July 30, 2021, 5:09 p.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
23756800 |
|
900 |
124347947 |
ethan55 |
A |
July 30, 2021, 5:05 p.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
23756800 |
|
900 |
124374010 |
mphillotry |
A |
July 31, 2021, 12:34 a.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
23859200 |
|
900 |
124389384 |
suyash.211.sn |
A |
July 31, 2021, 5:37 a.m. |
OK |
Java 11 |
TESTS |
3 |
171 |
23859200 |
|
900 |
124345524 |
ab5v |
A |
July 30, 2021, 4:48 p.m. |
OK |
Java 11 |
TESTS |
3 |
186 |
23756800 |
|
900 |
124351790 |
ayush__1411 |
A |
July 30, 2021, 5:40 p.m. |
OK |
Java 11 |
TESTS |
3 |
187 |
23756800 |
|
900 |
124388988 |
ganesh_6 |
A |
July 31, 2021, 5:32 a.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
20480000 |
|
900 |
124352127 |
themadknight45 |
A |
July 30, 2021, 5:44 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
20480000 |
|
900 |
124353466 |
gssakash |
A |
July 30, 2021, 5:59 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
20480000 |
|
900 |
124368798 |
kkkkush |
A |
July 30, 2021, 9:34 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
20480000 |
|
900 |
124361826 |
tishrah_ |
A |
July 30, 2021, 7:42 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
20480000 |
|
900 |
124355266 |
nuni. |
A |
July 30, 2021, 6:19 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
20480000 |
|
900 |
124355163 |
athu18 |
A |
July 30, 2021, 6:18 p.m. |
OK |
Java 8 |
TESTS |
3 |
108 |
20480000 |
|
900 |
124386466 |
Pranay_ |
A |
July 31, 2021, 4:54 a.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
20377600 |
|
900 |
124350073 |
smahajan54842 |
A |
July 30, 2021, 5:22 p.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
20480000 |
|
900 |
124339574 |
GoldenShadow |
A |
July 30, 2021, 4:29 p.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
20480000 |
|
900 |
124378110 |
utkarsh_2237 |
A |
July 31, 2021, 2:24 a.m. |
OK |
MS C++ |
TESTS |
3 |
62 |
3891200 |
|
900 |
124378507 |
a19q |
A |
July 31, 2021, 2:33 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
0 |
3686400 |
|
900 |
124344721 |
zhouxp |
A |
July 30, 2021, 4:44 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
3686400 |
|
900 |
124375748 |
swz |
A |
July 31, 2021, 1:31 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
30 |
3686400 |
|
900 |
124341298 |
karthikreddy123 |
A |
July 30, 2021, 4:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
31 |
3686400 |
|
900 |
124370774 |
ioi_crusher |
A |
July 30, 2021, 10:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
31 |
4505600 |
|
900 |
124347712 |
shivali0810 |
A |
July 30, 2021, 5:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
46 |
3686400 |
|
900 |
124345664 |
kcj1122 |
A |
July 30, 2021, 4:49 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
46 |
3788800 |
|
900 |
124380308 |
chuyu |
A |
July 31, 2021, 3:07 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
61 |
3686400 |
|
900 |
124351396 |
adasanvin12345 |
A |
July 30, 2021, 5:36 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
61 |
3686400 |
|
900 |
124341992 |
xiaonan_0421 |
A |
July 30, 2021, 4:33 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
61 |
3686400 |
|
900 |
124372798 |
Ahad726 |
A |
July 30, 2021, 11:51 p.m. |
OK |
.NET Core C# |
TESTS |
3 |
155 |
12185600 |
|
900 |
124390703 |
IceFire |
A |
July 31, 2021, 5:54 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
108 |
23244800 |
|
900 |
124350372 |
one_step_away |
A |
July 30, 2021, 5:25 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
124 |
23142400 |
|
900 |
124355525 |
Het_Fadia |
A |
July 30, 2021, 6:22 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
124 |
23654400 |
|
900 |
124355042 |
light_yagami52 |
A |
July 30, 2021, 6:16 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
139 |
24166400 |
|
900 |
124357266 |
LightSam |
A |
July 30, 2021, 6:43 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
139 |
24473600 |
|
900 |
124354609 |
kushagra219 |
A |
July 30, 2021, 6:12 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
139 |
24780800 |
|
900 |
124363031 |
silvertint |
A |
July 30, 2021, 7:59 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
139 |
25190400 |
|
900 |
124355438 |
Het_Fadia |
A |
July 30, 2021, 6:21 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
140 |
24678400 |
|
900 |
124346133 |
Virender |
A |
July 30, 2021, 4:52 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
140 |
24780800 |
|
900 |
124377415 |
pr_ll |
A |
July 31, 2021, 2:09 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
155 |
23449600 |
|
900 |
124344405 |
pandey.12 |
A |
July 30, 2021, 4:42 p.m. |
OK |
Python 3 |
TESTS |
3 |
62 |
7270400 |
|
900 |
124343879 |
viraldoshi |
A |
July 30, 2021, 4:39 p.m. |
OK |
Python 3 |
TESTS |
3 |
62 |
7270400 |
|
900 |
124369094 |
eugalt |
A |
July 30, 2021, 9:41 p.m. |
OK |
Python 3 |
TESTS |
3 |
62 |
7372800 |
|
900 |
124386944 |
ashu680537 |
A |
July 31, 2021, 5:03 a.m. |
OK |
Python 3 |
TESTS |
3 |
77 |
7065600 |
|
900 |
124369129 |
radoan.sharkar.richi |
A |
July 30, 2021, 9:42 p.m. |
OK |
Python 3 |
TESTS |
3 |
77 |
7577600 |
|
900 |
124346992 |
papergundam |
A |
July 30, 2021, 4:57 p.m. |
OK |
Python 3 |
TESTS |
3 |
78 |
7270400 |
|
900 |
124384776 |
xjb1899 |
A |
July 31, 2021, 4:28 a.m. |
OK |
Python 3 |
TESTS |
3 |
78 |
7372800 |
|
900 |
124350688 |
rostoki |
A |
July 30, 2021, 5:28 p.m. |
OK |
Python 3 |
TESTS |
3 |
92 |
7270400 |
|
900 |
124344451 |
aayush0501200 |
A |
July 30, 2021, 4:42 p.m. |
OK |
Python 3 |
TESTS |
3 |
108 |
6656000 |
|
900 |
124367726 |
def_xyz |
A |
July 30, 2021, 9:11 p.m. |
OK |
Python 3 |
TESTS |
3 |
108 |
6758400 |
|
900 |
remove filters
Back to search problems