Submission #154954
Source Code Expand
import std.stdio; import std.string; import std.conv; import std.range; void main() { auto input = readln().chomp().to!int(); auto tribo = recurrence!("(a[n - 1] + a[n - 2] + a[n - 3]) % 10007")(0, 0, 1); auto result = 0; foreach(e; tribo.take(input)) { writeln(e); result = e; } writeln(result); }
Submission Info
Submission Time | |
---|---|
Task | B - トリボナッチ数列 |
User | i7sm |
Language | D (DMD 2.060) |
Score | 0 |
Code Size | 359 Byte |
Status | WA |
Exec Time | 333 ms |
Memory | 5540 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1.txt, test_1000000.txt, test_1002.txt, test_104.txt, test_107843.txt, test_10980.txt, test_1212.txt, test_1238.txt, test_13194.txt, test_14.txt, test_16.txt, test_2.txt, test_210782.txt, test_21694.txt, test_243.txt, test_24916.txt, test_278.txt, test_3.txt, test_31.txt, test_32.txt, test_42.txt, test_5555.txt, test_567914.txt, test_61868.txt, test_765671.txt, test_8195.txt, test_8353.txt, test_9.txt, test_9625.txt, test_97.txt, test_998.txt, test_999998.txt, test_999999.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 21 ms | 920 KB |
sample_02.txt | WA | 22 ms | 928 KB |
sample_03.txt | WA | 53 ms | 1300 KB |
test_1.txt | WA | 22 ms | 800 KB |
test_1000000.txt | WA | 333 ms | 5540 KB |
test_1002.txt | WA | 22 ms | 920 KB |
test_104.txt | WA | 21 ms | 924 KB |
test_107843.txt | WA | 54 ms | 1316 KB |
test_10980.txt | WA | 24 ms | 924 KB |
test_1212.txt | WA | 21 ms | 800 KB |
test_1238.txt | WA | 22 ms | 928 KB |
test_13194.txt | WA | 25 ms | 920 KB |
test_14.txt | WA | 20 ms | 796 KB |
test_16.txt | WA | 22 ms | 728 KB |
test_2.txt | WA | 22 ms | 920 KB |
test_210782.txt | WA | 84 ms | 1780 KB |
test_21694.txt | WA | 27 ms | 912 KB |
test_243.txt | WA | 22 ms | 916 KB |
test_24916.txt | WA | 30 ms | 860 KB |
test_278.txt | WA | 22 ms | 928 KB |
test_3.txt | WA | 21 ms | 800 KB |
test_31.txt | WA | 20 ms | 928 KB |
test_32.txt | WA | 22 ms | 840 KB |
test_42.txt | WA | 20 ms | 924 KB |
test_5555.txt | WA | 22 ms | 848 KB |
test_567914.txt | WA | 193 ms | 3480 KB |
test_61868.txt | WA | 41 ms | 1052 KB |
test_765671.txt | WA | 256 ms | 4440 KB |
test_8195.txt | WA | 24 ms | 928 KB |
test_8353.txt | WA | 24 ms | 804 KB |
test_9.txt | WA | 21 ms | 732 KB |
test_9625.txt | WA | 24 ms | 804 KB |
test_97.txt | WA | 19 ms | 840 KB |
test_998.txt | WA | 21 ms | 924 KB |
test_999998.txt | WA | 330 ms | 5536 KB |
test_999999.txt | WA | 327 ms | 5540 KB |