Submission #3281178
Source Code Expand
shared void main() { assert (exists v = process.readLine()); assert (exists n = parseInteger(v)); variable Integer ans = 0; variable Integer x = 25; variable Integer p = 25; while (p < n) { while (x < n) { x += p; variable Integer y = 25; while (y < p) { if (x%y==0) { break; } y = y * 100 + 25; } if (y < p) { continue; } ans += 1; } p = p * 100 + 25; x = p; } print(ans); }
Submission Info
Submission Time | |
---|---|
Task | A - ニコニコ数 |
User | neetsdkasu |
Language | Ceylon (1.2.1) |
Score | 0 |
Code Size | 559 Byte |
Status | WA |
Exec Time | 2662 ms |
Memory | 192632 KB |
Compile Error
Note: Created module default
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 | 2474 ms | 182560 KB |
sample_02.txt | TLE | 2569 ms | 188604 KB |
test_01.txt | AC | 2514 ms | 183060 KB |
test_02.txt | WA | 2506 ms | 185228 KB |
test_03.txt | TLE | 2565 ms | 188688 KB |
test_04.txt | TLE | 2618 ms | 186808 KB |
test_05.txt | AC | 2495 ms | 183680 KB |
test_06.txt | TLE | 2533 ms | 187716 KB |
test_07.txt | TLE | 2607 ms | 191132 KB |
test_08.txt | WA | 2496 ms | 182908 KB |
test_09.txt | TLE | 2659 ms | 192632 KB |
test_10.txt | TLE | 2590 ms | 188364 KB |
test_11.txt | TLE | 2662 ms | 188444 KB |
test_12.txt | AC | 2432 ms | 188048 KB |
test_13.txt | TLE | 2644 ms | 184364 KB |
test_14.txt | TLE | 2648 ms | 188844 KB |
test_15.txt | TLE | 2557 ms | 189452 KB |