DCP-147: Brother's Challange Back to All Problems

Easy Math > Number Theory


Shovon has recently learned about number theory and its amazing properties. Since then, he has been annoying his brother, Badhon with numerous questions about number theory. To calm him down, Badhon gave him a task. He said, "If I gave you a number **N**, can you tell me the numbers below **N** that are divisible by 3 or 5?" Shovon, being a cleaver boy, told his brother, "That's too easy, I can even tell you the summation of these numbers." Badhon agreed. But before he starts asking question to Shovon, he needs a program to verify his answers. Now he has come to you for help. Input: ------ Input will consist of an integer **N (1 ≤ N ≤ 100000)**. Output: ------- Output the required summation. Sample Input ------------ 100 Sample Output ------------- 2318


Problem Setter:

Bakhtiar Hasan

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 1.00
C++ 1.00
C++14 1.00
C# 3.00
Go 3.00
Java 3.00
JavaScript 3.00
Objective-C 3.00
Perl 3.00
PHP 3.00
Python 3.00
Python3 3.00
Ruby 3.00
VB.Net 3.00

Problem Stats

299/572

Solve/Submission

Ranking

# User Language Timing
01 ash12 Cpp14 0.00s
02 MAHRahat Cpp14 0.00s
03 Nazmul_WUB Cpp14 0.00s
04 7Mahfuz Cpp14 0.00s
05 saiful130104 Cpp14 0.00s
06 TalukderMuhammad Cpp14 0.00s
07 afzalul Cpp14 0.00s
08 giash_uddin Cpp14 0.00s
09 mrinmoi Cpp 0.00s
10 kpretomazi Cpp 0.00s
11 Mr_KAJOL Cpp14 0.00s
12 JubayerSohel Cpp14 0.00s
13 Beauty Cpp14 0.00s
14 mir003 Cpp14 0.00s
15 terminator_c Cpp14 0.00s
16 ammasum Cpp14 0.00s
17 monir769 Cpp14 0.00s
18 sadia2427 Cpp14 0.00s
19 nazmul_bzs Cpp14 0.00s
20 tico88612 Cpp14 0.00s
21 Koushik54 Cpp14 0.00s
22 smriad Cpp14 0.00s
23 hafizur_acb Cpp14 0.00s
24 maruf089 C 0.00s
25 soumitro_cse1604114 Cpp14 0.00s
26 Anika_Bushra Cpp14 0.00s
27 abdulmukit Cpp 0.00s
28 joymollick Cpp14 0.00s
29 ismail_cse15 Cpp14 0.00s
30 Hannibal Cpp 0.00s
31 Morass Cpp14 0.00s
32 Rafiqul01 Cpp14 0.00s
33 Ratul23 Cpp 0.00s
34 souravahmed C 0.00s
35 prateepm Cpp14 0.00s
36 muntasir10mu Cpp 0.01s
37 Minhaj10 Cpp 0.01s
38 mash02 Cpp 0.01s
39 10102020 Cpp 0.01s
40 Ashish972 Cpp14 0.01s
41 mamun02inf Cpp 0.01s
42 mahmud2690 Cpp 0.01s
43 hmtanbir Cpp14 0.01s
44 Mahadi024 Cpp14 0.01s
45 lolcoder Cpp 0.01s
46 _dipu Cpp14 0.01s
47 DynamicOvi Cpp 0.01s
48 SakibAlamin Cpp14 0.01s
49 Rakib05 Cpp14 0.01s
50 seyedssz Cpp14 0.01s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support