Ramping modular sum

Submit

Your name:
File:
Open code-statistics:

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

Ruby _

RankUserSizeTimeDateStatistics
1tails310.00942023/11/07 22:17:320B / 20B / 10B
2rotary-o390.02662023/10/24 22:15:150B / 18B / 16B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o390.06082023/10/24 22:42:490B / 18B / 16B

Perl _

RankUserSizeTimeDateStatistics
1Dingledooper310.01612023/10/25 04:31:050B / 13B / 16B
2tails310.01562023/10/25 22:25:080B / 13B / 16B
3Sisyphus350.01962023/10/24 08:56:230B / 13B / 20B
4fuzzylojik440.01672023/10/26 03:35:270B / 20B / 23B

Python _

RankUserSizeTimeDateStatistics
1Dingledooper540.03282023/10/26 08:35:160B / 31B / 21B
2fuzzylojik560.03292023/10/25 22:26:150B / 35B / 20B

Python3 _

RankUserSizeTimeDateStatistics
1xnor (who posted this challenge for this solution)410.07422023/10/27 05:47:110B / 27B / 13B
2xnor410.05032023/10/27 05:48:070B / 27B / 13B
3bbq450.05112024/01/25 19:38:490B / ?B / ?B
4Dingledooper510.04912023/10/24 16:18:470B / 28B / 22B
5fuzzylojik530.11142023/10/25 22:25:210B / 32B / 21B
6Fleur530.05512024/05/07 14:05:290B / 32B / 20B

JavaScript _

RankUserSizeTimeDateStatistics
1fuzzylojik530.02362024/02/13 05:28:460B / 29B / 24B
2Shanethegamer530.02602024/02/13 05:46:410B / 32B / 19B
3KrausRaus540.02332024/02/12 10:02:050B / 32B / 20B
4voytxt550.02452024/04/27 16:34:310B / 31B / 24B

Perl6 _

RankUserSizeTimeDateStatistics
1Fleur341.35112023/10/26 08:44:130B / 19B / 10B

J _

RankUserSizeTimeDateStatistics
1ovs270.02952024/02/13 06:09:320B / 9B / 18B
24hg310.03102023/10/24 10:02:190B / 10B / 21B

Atlas _

RankUserSizeTimeDateStatistics
1tails90.15912024/01/10 10:01:520B / 2B / 7B
2darrenks100.15362024/01/09 22:55:000B / 3B / 7B

C _

RankUserSizeTimeDateStatistics
1tails620.01442023/10/26 10:55:580B / 34B / 28B
2rotary-o650.01412023/10/26 08:05:570B / 34B / 31B
3the880.01422023/11/02 16:53:210B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1Shanethegamer600.02012024/02/14 11:22:520B / 41B / 19B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1170.11302023/10/27 23:14:060B / 70B / 43B

C# _

RankUserSizeTimeDateStatistics
1rotary-o1200.05182023/10/27 06:39:540B / 76B / 39B

AWK _

RankUserSizeTimeDateStatistics
1Fleur300.01402024/05/07 13:49:560B / 12B / 18B
2fuzzylojik340.01932024/02/13 05:43:260B / 19B / 15B

sed _

RankUserSizeTimeDateStatistics
1tails720.03182023/10/24 18:16:100B / 21B / 44B
2McBusLuck950.02052024/01/20 19:30:270B / 39B / 42B

Bash _

RankUserSizeTimeDateStatistics
1Fleur300.00722024/05/07 15:05:180B / 13B / 15B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails360.03132023/11/02 11:27:300B / 17B / 14B
2McBusLuck451.09642023/11/04 21:01:470B / 18B / 21B

dc _

RankUserSizeTimeDateStatistics
1Fleur340.01902023/10/25 15:15:450B / 17B / 17B
2tails340.02002023/10/25 17:12:090B / 21B / 13B

gs2 _

RankUserSizeTimeDateStatistics
1tails60.07182023/10/24 13:19:112B / 4B / 0B
2whio60.08062023/12/06 06:59:222B / 4B / 0B

Nibbles _

RankUserSizeTimeDateStatistics
1tails50.02012023/10/24 13:33:484B / 1B / 0B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik170.04982023/10/26 04:01:160B / 6B / 11B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails3410.05622024/02/11 23:54:540B / 221B / 120B

Universal Lambda _

RankUserSizeTimeDateStatistics
1tails430.04852024/02/12 00:07:5724B / 17B / 1B

z80 _

RankUserSizeTimeDateStatistics
1tails300.08602023/11/05 23:44:3621B / 7B / 1B
2McBusLuck420.08562023/11/04 23:24:0227B / 11B / 4B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o492.80102023/10/24 22:07:290B / 32B / 17B
2Hendrik584.64912023/10/26 03:43:390B / 39B / 17B

Language Ranking_

RankLangUserSizeScore
1Nibblestails510000
2gs2tails68333
3Atlastails95555
4BurlesqueHendrik172941
5Jovs271851
6z80tails301666
7AWKFleur301666
8BashFleur301666
9PerlDingledooper311612
10Rubytails311612
11dcFleur341470
12Perl6Fleur341470
13Bash (builtins)tails361388
14Ruby2rotary-o391282
15Python3xnor (who posted this challenge for this solution)411219
16Universal Lambdatails431162
17Scalarotary-o491020
18JavaScriptfuzzylojik53943
19PythonDingledooper54925
20HaskellShanethegamer60833
21Ctails62806
22sedtails72694
23Javarotary-o117427
24C#rotary-o120416
25Lazy-Ktails341146

return to the top page