Ramping modular sum
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Given a six-digit number abcdef, output (a + 2b + 3c + 4d + 5e + 6f) modulo 7. Each digit is less than 7, and a>0.
Options
exec is denied
no deadline, the server will not save your submission
Sample input:_
456400
415255
664664
602626
560435
324524
642335
506411
324515
305126
325324
416254
215032
441306
106650
444515
110464
450216
530315
261231
503452
435600
454324
135163
260644
500461
115532
104341
461460
423031
106340
405641
345044
325001
531124
642043
236412
232040
514622
223222
242616
505305
303522
515030
530621
206425
400126
153005
523336
631226
416023
564256
342226
405603
215165
455655
154433
416505
641625
644444
323044
633216
600423
641264
363450
345203
426365
436305
320611
401124
530014
145046
545536
634100
344334
402104
466154
556653
600215
243440
152410
435510
211203
416524
302062
256101
242002
605166
212163
244531
462564
466303
354133
362636
562063
230040
265131
151153
443360
215216
Sample output:
6
0
3
5
1
3
0
1
4
5
5
4
4
0
5
2
3
0
2
4
4
0
2
4
5
1
2
2
2
3
2
6
0
0
3
2
3
6
2
3
4
6
5
2
2
6
5
1
4
6
3
0
1
5
6
3
2
4
4
2
4
0
1
2
2
3
0
0
0
3
5
3
1
0
4
3
3
2
0
6
3
1
5
1
2
5
0
0
6
0
5
1
6
5
1
0
5
5
0
5
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 31 | 0.0094 | 2023/11/07 22:17:32 | 0B / 20B / 10B |
2 | rotary-o | 39 | 0.0266 | 2023/10/24 22:15:15 | 0B / 18B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 39 | 0.0608 | 2023/10/24 22:42:49 | 0B / 18B / 16B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Dingledooper | 31 | 0.0161 | 2023/10/25 04:31:05 | 0B / 13B / 16B |
2 | tails | 31 | 0.0156 | 2023/10/25 22:25:08 | 0B / 13B / 16B |
3 | Sisyphus | 35 | 0.0196 | 2023/10/24 08:56:23 | 0B / 13B / 20B |
4 | fuzzylojik | 44 | 0.0167 | 2023/10/26 03:35:27 | 0B / 20B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Dingledooper | 54 | 0.0328 | 2023/10/26 08:35:16 | 0B / 31B / 21B |
2 | fuzzylojik | 56 | 0.0329 | 2023/10/25 22:26:15 | 0B / 35B / 20B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | xnor (who posted this challenge for this solution) | 41 | 0.0742 | 2023/10/27 05:47:11 | 0B / 27B / 13B |
2 | xnor | 41 | 0.0503 | 2023/10/27 05:48:07 | 0B / 27B / 13B |
3 | bbq | 45 | 0.0511 | 2024/01/25 19:38:49 | 0B / ?B / ?B |
4 | Dingledooper | 51 | 0.0491 | 2023/10/24 16:18:47 | 0B / 28B / 22B |
5 | fuzzylojik | 53 | 0.1114 | 2023/10/25 22:25:21 | 0B / 32B / 21B |
6 | Fleur | 53 | 0.0551 | 2024/05/07 14:05:29 | 0B / 32B / 20B |
7 | DialFrost | 61 | 0.0521 | 2024/07/07 05:59:39 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | fuzzylojik | 53 | 0.0236 | 2024/02/13 05:28:46 | 0B / 29B / 24B |
2 | Shanethegamer | 53 | 0.0260 | 2024/02/13 05:46:41 | 0B / 32B / 19B |
3 | KrausRaus | 54 | 0.0233 | 2024/02/12 10:02:05 | 0B / 32B / 20B |
4 | voytxt | 54 | 0.0227 | 2024/07/13 02:33:10 | 0B / 31B / 23B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 34 | 1.3511 | 2023/10/26 08:44:13 | 0B / 19B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | ovs | 27 | 0.0295 | 2024/02/13 06:09:32 | 0B / 9B / 18B |
2 | 4hg | 31 | 0.0310 | 2023/10/24 10:02:19 | 0B / 10B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 9 | 0.1591 | 2024/01/10 10:01:52 | 0B / 2B / 7B |
2 | darrenks | 10 | 0.1536 | 2024/01/09 22:55:00 | 0B / 3B / 7B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 62 | 0.0144 | 2023/10/26 10:55:58 | 0B / 34B / 28B |
2 | rotary-o | 65 | 0.0141 | 2023/10/26 08:05:57 | 0B / 34B / 31B |
3 | the | 88 | 0.0142 | 2023/11/02 16:53:21 | 0B / ?B / ?B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Shanethegamer | 60 | 0.0201 | 2024/02/14 11:22:52 | 0B / 41B / 19B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 117 | 0.1130 | 2023/10/27 23:14:06 | 0B / 70B / 43B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 120 | 0.0518 | 2023/10/27 06:39:54 | 0B / 76B / 39B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 30 | 0.0140 | 2024/05/07 13:49:56 | 0B / 12B / 18B |
2 | fuzzylojik | 34 | 0.0193 | 2024/02/13 05:43:26 | 0B / 19B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 72 | 0.0318 | 2023/10/24 18:16:10 | 0B / 21B / 44B |
2 | McBusLuck | 95 | 0.0205 | 2024/01/20 19:30:27 | 0B / 39B / 42B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 30 | 0.0072 | 2024/05/07 15:05:18 | 0B / 13B / 15B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 36 | 0.0313 | 2023/11/02 11:27:30 | 0B / 17B / 14B |
2 | McBusLuck | 45 | 1.0964 | 2023/11/04 21:01:47 | 0B / 18B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 34 | 0.0190 | 2023/10/25 15:15:45 | 0B / 17B / 17B |
2 | tails | 34 | 0.0200 | 2023/10/25 17:12:09 | 0B / 21B / 13B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | sean (cheat) | 210 | 0.0147 | 2024/09/05 00:18:38 | 1B / 100B / 10B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 6 | 0.0718 | 2023/10/24 13:19:11 | 2B / 4B / 0B |
2 | whio | 6 | 0.0806 | 2023/12/06 06:59:22 | 2B / 4B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 5 | 0.0201 | 2023/10/24 13:33:48 | 4B / 1B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Hendrik | 17 | 0.0498 | 2023/10/26 04:01:16 | 0B / 6B / 11B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 341 | 0.0562 | 2024/02/11 23:54:54 | 0B / 221B / 120B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 43 | 0.0485 | 2024/02/12 00:07:57 | 24B / 17B / 1B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 30 | 0.0860 | 2023/11/05 23:44:36 | 21B / 7B / 1B |
2 | McBusLuck | 42 | 0.0856 | 2023/11/04 23:24:02 | 27B / 11B / 4B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | rotary-o | 49 | 2.8010 | 2023/10/24 22:07:29 | 0B / 32B / 17B |
2 | Hendrik | 58 | 4.6491 | 2023/10/26 03:43:39 | 0B / 39B / 17B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Nibbles | tails | 5 | 10000 |
2 | gs2 | tails | 6 | 8333 |
3 | Atlas | tails | 9 | 5555 |
4 | Burlesque | Hendrik | 17 | 2941 |
5 | J | ovs | 27 | 1851 |
6 | z80 | tails | 30 | 1666 |
7 | AWK | Fleur | 30 | 1666 |
8 | Bash | Fleur | 30 | 1666 |
9 | Perl | Dingledooper | 31 | 1612 |
10 | Ruby | tails | 31 | 1612 |
11 | dc | Fleur | 34 | 1470 |
12 | Perl6 | Fleur | 34 | 1470 |
13 | Bash (builtins) | tails | 36 | 1388 |
14 | Ruby2 | rotary-o | 39 | 1282 |
15 | Python3 | xnor (who posted this challenge for this solution) | 41 | 1219 |
16 | Universal Lambda | tails | 43 | 1162 |
17 | Scala | rotary-o | 49 | 1020 |
18 | JavaScript | fuzzylojik | 53 | 943 |
19 | Python | Dingledooper | 54 | 925 |
20 | Haskell | Shanethegamer | 60 | 833 |
21 | C | tails | 62 | 806 |
22 | sed | tails | 72 | 694 |
23 | Java | rotary-o | 117 | 427 |
24 | C# | rotary-o | 120 | 416 |
25 | Brainfuck | sean (cheat) | 210 | 238 |
26 | Lazy-K | tails | 341 | 146 |
return to the top page