Arithmetic derivative
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Compute and print the arithmetic derivative of a space-separated list of positive integers. If an entry is not a positive integer, output "Wait, that's not a number..." (without the quotes) and move on to the next entry.
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
9 983 74 Raymond 439 12 0 1 783 469 21Savage 773 125 385 101 785 285 994 1008 375 3.3 295 584 221 364 128 477 E622
Sample output:
6
1
39
Wait, that's not a number...
1
16
0
0
810
74
Wait, that's not a number...
1
75
167
1
162
167
653
2832
350
Wait, that's not a number...
64
884
30
444
448
327
Wait, that's not a number...
Sample input:_
one 1 two 2 three 3 four 4 five 6 876 2 20 200 2000 20000 200000 -199999 -19999 -1999 -199 -19 -1 250250 765 1058 373 1284
Sample output:
Wait, that's not a number...
0
Wait, that's not a number...
1
Wait, that's not a number...
1
Wait, that's not a number...
4
Wait, that's not a number...
5
1180
1
24
380
5200
66000
800000
-1
-2864
-1
-1
-1
0
353025
708
621
1
1724
Sample input:_
59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 fiftynine 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59 59
Sample output:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Wait, that's not a number...
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 105 | 0.1516 | 2023/10/05 22:46:25 | 0B / 46B / 53B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 126 | 0.2109 | 2023/10/30 15:17:07 | 0B / 60B / 51B |
2 | tails | 125 | 0.2059 | 2023/11/01 09:58:46 | 0B / 59B / 51B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 52 | 0.8444 | 2023/10/04 15:08:56 | 9B / 30B / 9B |
2 | whio | 54 | 0.8046 | 2023/11/01 00:10:18 | 10B / 29B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 49 | 0.1162 | 2023/10/05 16:50:29 | 33B / 11B / 5B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | tails | 49 | 10000 |
2 | gs2 | tails | 52 | 9423 |
3 | Perl | tails | 105 | 4666 |
4 | Ruby2 | rotary-o | 117 | 4188 |
5 | Ruby | rotary-o | 118 | 4152 |
6 | Bash (builtins) | tails | 125 | 3920 |
7 | JavaScript | ZED.CWT | 133 | 3684 |
8 | C | tails (rotary-o) | 148 | 3310 |
9 | Python | hallvabo | 153 | 3202 |
10 | Python3 | hallvabo | 154 | 3181 |
11 | Scala | rotary-o | 157 | 3121 |
12 | C# | rotary-o | 232 | 2112 |
13 | Java | rotary-o | 239 | 2050 |
return to the top page