Modular Exponentiation 2

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

input is 3 numbers, a b c
for each line, calculate a**b%c

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

1185681995 2065200205 1133182845
954313085 1906833165 717885868
1709427393 606553889 1865829838
326823182 1508945199 352458076
1432227062 1871825423 346026058
1332179800 317228564 1794530443
1504274548 1762999788 1044702238
877822260 1046995631 652095888
1697266805 559099222 1406791886
1694100923 989549636 2058185588
1109630021 2076367156 1771359119
228552261 1937322635 917884
1650634458 1556332455 702134231
200015812 1478748865 1721265310
1009616960 2006729940 934337410
1669451097 1395042873 1849612215
55354032 1008822606 1582033733
1663103725 1689258792 827515719
726162096 605146129 1636874390
813820191 388775911 343635239
1766318488 911616324 1585967655
278158255 402063718 1901006429
63601785 948176815 1870574980
1448676045 725986584 977573597
932352290 1035269667 136058992
1337136947 1890671730 2063452858
1222472234 1373384174 1269132945
1919364398 1046496160 2077011431
281318750 667531151 1751858677
1164401062 1018264953 585667032
549681233 1973330494 1589297987
619583275 960921046 1962940783
1611376681 1180378919 596712738
1570190603 1565114519 1307679464
2064636679 995808479 437354874

Sample output:

805510655
77966181
103268827
156211692
308923636
1344045145
477326326
249949728
310597949
1359107505
1145563967
506573
540189697
1439448182
426498180
1240342407
1434546191
642245626
1341124046
78172202
1057392706
1126174032
126861225
403429118
11395440
353893631
669854326
1030567473
1129806143
109635328
1387556205
366742801
270119197
2520403
264535207

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid640.01752010/01/29 07:46:040B / 27B / 33B
2flagitious640.02332010/01/29 08:43:540B / 27B / 33B
3ksk670.03732010/02/10 22:55:440B / 22B / 40B
4uru690.05102010/01/28 23:39:340B / 30B / 35B
5mitchs590.02732015/09/12 18:13:160B / 34B / 19B
6ksk630.02852010/02/11 12:29:090B / 26B / 33B

Perl _

RankUserSizeTimeDateStatistics
1prakash510.18082010/02/02 07:49:510B / 34B / 14B
2teebee480.45802011/04/14 07:08:360B / 31B / 14B

Python _

RankUserSizeTimeDateStatistics
1hallvabo480.00332010/01/28 19:27:430B / 33B / 13B
2leonid480.00332010/01/28 22:18:560B / 33B / 13B
3notogawa480.00332010/01/29 00:07:300B / 33B / 13B
4kt3k480.00332010/01/29 03:01:030B / 33B / 13B
5betaveros480.00472010/01/29 17:21:270B / 33B / 13B
6tobiesque480.00332010/02/03 22:56:540B / ?B / ?B
7Exelian480.00342010/02/10 23:19:420B / ?B / ?B
8recursive480.00362010/02/11 02:29:280B / 33B / 13B
9primo480.00362010/02/11 02:53:010B / 33B / 13B
10kaki480.00332010/02/11 03:03:160B / 33B / 13B
11Volatility480.01922013/01/23 11:12:330B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1primo670.02372010/02/11 03:20:361B / 35B / 30B
2o-cn680.02902010/01/28 13:16:070B / 35B / 31B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1340.01982010/02/09 08:04:530B / 67B / 50B
2kaki1070.06302011/03/22 15:21:250B / 54B / 42B
3cddddr1230.03502011/03/17 14:11:360B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima470.03972010/02/10 14:30:480B / 26B / 18B
2youz470.04382010/02/10 14:43:100B / 26B / 18B
3kaki470.03892010/02/11 03:16:000B / 29B / 17B

Arc _

RankUserSizeTimeDateStatistics
1youz1071.14102010/02/10 23:19:480B / 61B / 36B

Clojure _

RankUserSizeTimeDateStatistics
1murky-satyr531.82652010/05/31 10:21:140B / 31B / 20B

LilyPond _

RankUserSizeTimeDateStatistics
1KirarinSnow530.76492010/01/30 10:21:500B / 31B / 20B

Forth _

RankUserSizeTimeDateStatistics
151b1860.02042010/03/28 20:18:580B / 126B / 17B

Erlang _

RankUserSizeTimeDateStatistics
151b1840.13452010/03/23 00:44:150B / 92B / 79B

J _

RankUserSizeTimeDateStatistics
1pooq380.03182010/01/28 12:38:360B / 13B / 24B
2pooq340.07212010/12/13 12:08:180B / 9B / 24B

C _

RankUserSizeTimeDateStatistics
1tanakh1080.00042010/02/10 15:06:420B / 56B / 52B
2inaniwa1080.00042010/02/10 15:55:360B / 55B / 53B
351b1100.00042010/02/04 23:58:340B / 58B / 50B
451b1060.00042010/02/11 09:01:540B / 55B / 51B

D _

RankUserSizeTimeDateStatistics
151b1260.00072010/02/04 23:59:080B / 71B / 51B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1800.05732010/09/28 17:35:400B / 113B / 46B

Haskell _

RankUserSizeTimeDateStatistics
1rst76860.00502010/01/29 02:07:450B / 54B / 27B
2notogawa890.00332010/01/28 22:17:160B / ?B / ?B
3fox940.00322010/01/28 21:37:420B / 59B / 30B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1640.14552010/02/01 13:58:500B / 124B / 36B
2nn1640.15112010/02/10 00:04:020B / 124B / 36B

Pascal _

RankUserSizeTimeDateStatistics
1uru1380.00052010/01/28 19:43:180B / 93B / 29B
2uru1340.00052010/02/11 14:04:010B / 92B / 29B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1080.01262011/11/23 03:44:400B / 63B / 43B

Maxima _

RankUserSizeTimeDateStatistics
1pooq690.10892010/01/28 12:59:120B / 40B / 27B
2pooq640.30582011/03/17 15:58:440B / 34B / 29B

dc _

RankUserSizeTimeDateStatistics
1Carlos Gutierrez120.00922010/04/13 02:19:580B / 7B / 5B
2narb120.02842010/09/05 17:35:320B / ?B / ?B
3pooq140.00922010/04/12 21:57:140B / 9B / 5B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)2420.11022010/02/05 00:14:43108B / 91B / 40B
2yshl4500.15122010/02/05 00:14:240B / 313B / 31B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious380.40942010/01/29 01:55:170B / 15B / 23B
2betaveros550.11942010/01/29 20:02:281B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs180.14662015/09/13 02:29:348B / 8B / 1B

Groovy _

RankUserSizeTimeDateStatistics
1nn761.17682010/01/31 03:05:510B / 54B / 21B

Language Ranking_

RankLangUserSizeScore
1dcCarlos Gutierrez1210000
2gs2mitchs186666
3Jpooq343529
4GolfScriptflagitious383157
5Common LISPkozima472553
6Pythonhallvabo482500
7Perlteebee482500
8LilyPondKirarinSnow532264
9Clojuremurky-satyr532264
10Rubymitchs592033
11Maximapooq641875
12PHPprimo671791
13Groovynn761578
14Haskellrst76861395
15C51b1061132
16Arcyouz1071121
17Schemekaki1071121
18Fortran*yuko*1081111
19D51b126952
20Pascaluru134895
21Javahallvabo164731
22OCamlm.ukai180666
23Erlang51b184652
24Forth51b186645
25Postscriptyshl(bin)242495

return top