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 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

319/609

Solve/Submission

Ranking

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