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 |
1958
|
Kotlin Heroes: Episode 10 |
FINISHED |
False |
9000 |
21569063 |
May 13, 2024, 2:35 p.m. |
Problems
B"In Berland, coins of worth 1 , 3 and 5 burles are commonly used (burles are local currency). Eva has to pay exactly n burles in a shop. She has an infinite amount of coins of all three types. However, she doesn't like to pay using coins worth 1 burle -- she thinks they are the most convenient to use. Help Eva to calculate the minimum number of coins worth 1 burle she has to use, if she has to pay exactly n burles. Note that she can spend any number of coins worth 3 and/or 5 burles. The first line contains one integer t ( 1 <= t <= 100 ) -- the number of test cases. Each test case consists of one line, containing one integer n ( 1 <= n <= 100 ). For each test case, print one integer -- the minimum number of 1 -burle coins Eva has to use. In the first test case, Eva should use 1 coin worth 1 burle, and 2 coins worth 3 burles. In the second test case, Eva should use 1 coin worth 3 burles and 1 coin worth 5 burles. In the third test case, Eva should use 14 coins worth 3 burles. In the fourth test case, Eva should use 2 coins worth 1 burle. In the fifth test case, Eva should use 2 coins worth 3 burles and 1 coin worth 5 burles. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
260978831 |
ItzDEXX |
A |
May 14, 2024, 8:01 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
171 |
0 |
|
1100 |
260830814 |
baby_ghost |
A |
May 13, 2024, 4:29 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
171 |
0 |
|
1100 |
260817678 |
BadlyBadCoder |
A |
May 13, 2024, 2:56 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
171 |
0 |
|
1100 |
260815410 |
Yousef_Badr |
A |
May 13, 2024, 2:43 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
171 |
0 |
|
1100 |
262656586 |
Ashish_Jha_ |
A |
May 26, 2024, 6:11 a.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
186 |
0 |
|
1100 |
261537246 |
tushar_104 |
A |
May 18, 2024, 1:40 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
186 |
0 |
|
1100 |
260875805 |
Rajat.18 |
A |
May 14, 2024, 4:26 a.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
186 |
0 |
|
1100 |
260814827 |
snasibov05 |
A |
May 13, 2024, 2:40 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
186 |
0 |
|
1100 |
260814314 |
nguyenhoangminh318 |
A |
May 13, 2024, 2:37 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
186 |
0 |
|
1100 |
261784041 |
57_alok |
A |
May 20, 2024, 1:11 p.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
187 |
0 |
|
1100 |
260831363 |
Muhammad.Ibrahim |
A |
May 13, 2024, 4:33 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
108 |
0 |
|
1100 |
260826002 |
ArseniiKuznetsoc |
A |
May 13, 2024, 3:54 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
108 |
0 |
|
1100 |
260815567 |
1435730 |
A |
May 13, 2024, 2:44 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
108 |
0 |
|
1100 |
260814861 |
mamikonm1 |
A |
May 13, 2024, 2:40 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
108 |
0 |
|
1100 |
263168332 |
Mephisto2412 |
A |
May 29, 2024, 4:33 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
261044996 |
granadierfc |
A |
May 15, 2024, 11:28 a.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
260881134 |
Sparkle_Twilight |
A |
May 14, 2024, 5:41 a.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
260880901 |
Jlyfish |
A |
May 14, 2024, 5:38 a.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
260852388 |
amit_201 |
A |
May 13, 2024, 8:03 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
260821768 |
ibrahim_habib |
A |
May 13, 2024, 3:23 p.m. |
OK |
Kotlin 1.9 |
TESTS |
3 |
109 |
0 |
|
1100 |
remove filters
Back to search problems