Submission #616058
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long n = scanner.nextLong(); int count = 0; for (long i = 1; i <= n; i++) { if (i % 25 == 0 || i % 2525 == 0 || i % 252525 == 0 || i % 25252525 == 0 || i % 2525252525L == 0) { count++; } } System.out.println(count); } }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | yuiki |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 453 Byte |
Status | TLE |
Exec Time | 2569 ms |
Memory | 24968 KB |
Judge Result
Set Name | Sample | Subtask1 | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 60 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
Subtask1 | sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 560 ms | 23976 KB |
sample_02.txt | AC | 637 ms | 24736 KB |
test_01.txt | AC | 382 ms | 24004 KB |
test_02.txt | AC | 432 ms | 23824 KB |
test_03.txt | AC | 390 ms | 23920 KB |
test_04.txt | AC | 411 ms | 24848 KB |
test_05.txt | AC | 415 ms | 24784 KB |
test_06.txt | AC | 678 ms | 24864 KB |
test_07.txt | AC | 471 ms | 24820 KB |
test_08.txt | TLE | 2562 ms | 24968 KB |
test_09.txt | TLE | 2566 ms | 24860 KB |
test_10.txt | TLE | 2569 ms | 24840 KB |
test_11.txt | TLE | 2567 ms | 24872 KB |
test_12.txt | TLE | 2563 ms | 24824 KB |
test_13.txt | AC | 748 ms | 24832 KB |
test_14.txt | AC | 403 ms | 23940 KB |
test_15.txt | AC | 394 ms | 23944 KB |