Evaluate as Python

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

Simply evaluate the following programs as python code. This is a trivial problem and is suitable for any beginner to golfing.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

def f(x):
    if x < 2:
        return x
    return f(x-2) + f(x-1)

for x in range(40):
    print(f(x))

Sample output:

0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
987
1597
2584
4181
6765
10946
17711
28657
46368
75025
121393
196418
317811
514229
832040
1346269
2178309
3524578
5702887
9227465
14930352
24157817
39088169
63245986

Sample input:_

def f(x, m):
    for i in range(m):
        if i * x % m == 1:
            return i

ns = [
    567868738168412064763626235097,
    248521286377643941820289878213,
    728640288356903765521505398381,
    916499856616271447470063068427,
    321761048254314245533281812239
]

for n in ns:
    for q in range(111, 999, 17):
        print(f(q, n))

Sample output:

480897850340817424214242036929
102038913889636542887214089119
438629646033532077610525091937
234859292946195113204709615750
152277650458568598372369046283
460669027391722032129676384594
282601343877237928943400849391
91352797009701071288061611733
310373601832937768190645917968
428052571573916670030157654486
408218808220709028762464410995
329668764104480829543984357959
526405306492623247336440827455
545632914083504363432520388542
55322455867409771352330349551
280831261225362250607148493313
443323114131475737243666434188
237085198185312037038813953153
250570378472392853516803902297
427864233596937200870289813080
84361874628123300086835826500
37615236929958918819812848906
8196043643667802996588419888
424204734687558813319441908688
447511202140424921942819133246
524431017524932783690289153681
364545030831439933076107257612
96637311583045561898371482113
211862442349032780550654421612
510517756333522766832200406718
160027422189166040794902723256
177125202030586208288341098408
426551785005891199791914668195
370973773892757286355999876797
411272134029082177528373717436
135934584632381924851349622849
436701270292720757964835666271
327675609726908042775768111333
138028861060750092359983127157
128394094547121590870328929124
104097303456914980266404303526
308532643633580317365386036148
46117824796707404047470251820
248864090717510750472420523457
315996806571013931265440442813
43432882942104575729638079625
218753466886823908486772032333
116693905535706655066811105454
404920427108220469049360238834
495080478297249077648797024878
376412472646491659994203862390
268837654163573400803230007004
18263115197376066404458331179
2238930507906702178561170074
223280843229914478979166687457
236523707035274923939310366851
231646384216198982807801059322
166606448968252921890697125059
226965868681623804009346368368
158680257968824300880560673413
186931228449271312760478908395
27166294462333548296145047416
198628755400313908045761985996
206953669083162570768497621003
40864238364109238755685248431
69428168892802117079953997723
205853475162205072290902760568
207219754544109991603737405616
118828483923736857427734231386
222566060646297316042713911820
200680938749947483019884076657
109659272646250564256434862329
190685687474090858585614123145
146577964914530573224383830609
41951242785969810691886539271
209065329571296346933357258373
62872915079603148627842260026
152752004536548010482991273892
82994981831340047734760985448
130777024115541387106156156528
44908232450697063171034837642
96106187406686839511423854096
216838936955328406190882062613
244119137987701778599640621111
65051810070637207341674623294
128244572207089545550012181429
149038807158021590109489316845
239503823156394161638131319497
62306328171165690796304969467
216897554224472098601110529948
74892225489479187872871138975
193695586476631341709340856203
221871070913374630229741997216
205791962803232341203906283476
23068188710796157965992253547
202733122099581057994006167318
46929791608129913004068991254
34717758283256429590727340379
100713535004638812039044414116
123843194219542613785026871002
14474316679137504303819080819
238333790280178494367030961954
110307647237534758074895613317
206368352267804230564611157975
35321532521975979461165943836
91915410439168814663182588123
269137403807504994471907399402
153697560825284388039692544971
497485438257472226114682996136
697155831452593108986625535488
541391946097587714046705128406
665441895999417214430354419950
222355017573703027037079112182
281952111581584500571365132417
660791192679945115290757932135
494040195514718841016475251175
373395734958698015071518780665
144260996688111819348217511760
171172639169558344916163172953
15362897646079296260995595749
192077096071160878017130362897
702759622377013741063091272209
466101489941100319981119641262
690386673218166317831626364966
354709780662953152040445074032
206504044856910514191578718896
520226547341292710638414053833
409470931277490791308025469603
546855804045181382783150443321
463020422282574305181992474270
377657490497123531647947884710
167206633335632767087957395524
318862477002478682199284460051
650662994339761432720081136449
304117326486271588675926443958
423431690750452353804715885483
23466675953523470709227227001
179304898545507666437110262611
182438179069514835947369290587
376247291755722628922563055414
250635338665582282189545398282
632657927426036838901817010209
189466630997369167244872773023
550418812420958385035839888777
622761250418648264587072645644
298422443681057485362166939647
203577122284292961036981912822
118133512097468308518956939589
158092862564710029125272080376
156631700941329669310442371861
332511051264151660168137504267
128926078419315163990677325056
353304865463089955734391755318
647769223385423237699887766253
213797366162974999160571163279
675381623212172452151819092779
304800620103512293173408085483
164651844301508928609665330309
607078189997862534288771834430
189905375695263453079382437602
665894427072759723552467698154
771124017290931838561018581711
639286937022460947926648930446
404488763534555555028687052546
565798380870249209917743016733
189323914042797857693346361553
346676032720067895347371682405
59368411764616773925186271639
767221470879530264738196735312
740375329010297575002506464530
390588865068008301438583925135
616818951119522370995724985735
908218231405883452462803462387
39391111315885592298140246494
838872819580467035252653354981
887784456408973125356118533646
543026165045140832626012368043
802212104712084120687225467568
137263803410271069321553224534
292629665970605517595762930939
362291609987201320046926640297
145506162802995673103494549008
505718048371926675197624442140
580979677893551649744991810236
418922509087661389235383305531
548574055226014193693654386346
606176220954972518765287327714
418436050380171631894338845551
128977628828448796415489007974
366009604574614040213487344557
633505386783347505226172120966
737397594559961912697287384826
432336985933568525071443441505
488179168908812222382457396390
393342006451459275613922251747
892414798143644673608470816283
120135792015916662708913672483
743369764811612508251808089847
410885594632876217405829308455
845821612300730918651259216121
332344626223474670926644157239
318830859210751400513828000774
266677511723261881983569420148
75752607473521854214638507402
494868073264265290700159624847
113921034808965431880377380286
107764268854880269098128294859
485438435381433959771090578854
851451667640328452787336134545
712409357848444090801391375770
758127182006711248469612497298
499239117875396105054044405113
179722387313220569577148399629
42733889221276110734888990688
57695084514566692302519497367
212521186192664347358402184627
107852865336641646547468763879
100139918079148821313929543605
252272746753382530535483862178
85336625841361604250131263246
136781012415801602352204818968
283978500921421284883540387317
46947341560238021590265317800
5398675306280440361296674702
26558054776546572647191514661
24228994597463422103409775018
17517077125593039155107032758
278683749444310425776093810054
297397940161951025897602510529
193861031573224332933802291874
235340814670421690378059838688
149018365666168579152510701060
205470469838675172313936057483
36438751191193707293299008651
3980549050568836027215857471
173699689396253307847648149635
185369081749595297523027479498
111055585684791297432196147881
165826218358914213339937281172
209426927898860675601486933931
151836133503313536648584432692
296723350790816282718605909631
55440309441564612354365787294
261746056495280710708108558859
133125563476212458838960871934
283934972641083850597077551574
55105665738764994155191950427
210101760970593296304310078530
72985908594339607562182873039
139574724985993071373220894228
21677428614227247717565881670
216585925246121087755607007980
144406033034489958488388171106
318973514420427859742770707430
103743562225027380984064196431
259472389269215407027432720321
112372892289050376786943589839
120844046661723044269919767382
3603147236890417083239437987
46319447605840841939406502641
108989179236089183492395349561
5794425657122184506425625856
129574948672653083268865828654
1644995134224510457736614582
186265692255763824549919923467

Sample input:_

import itertools

l = 1,
for _ in range(100):
   l = sorted(l)[::-1]
   n = int(''.join(map(str, l))) % int('golfshinhorg', 36)
   print(n)
   l = *l, n

Sample output:

1
11
1111
11111111
1111111111111111
438112177121412147
1093292051048414611
627790386912925895
655582680551482095
1574017084071681143
468720357418044347
1734309422763782959
1094075476796454703
1052978573966210823
689149358837250363
1512932805185765023
1066903558550659551
2173065540673594639
535251389480095143
962335894408873055
705040757209708023
1933070016605626759
1406737304055120327
91953648880824275
836395220080561127
2175914701307669675
2155917031232667019
1699735569979431919
778871988976413263
1054175873525917175
787096684044222463
1607720436285652255
1004978214163386303
1425925342704490923
1573218590681060755
1532550034203100259
1519036817212243387
1638088672990426447
568500592455214815
1018239232978215935
277699299535846223
1768995803090211307
860793100972122743
1298007526889141819
344357497292815311
848251011967448655
2039537690293733403
1431846101816390231
132533422636883451
840628356569881499
1793224237009426163
1200770996501826099
80290749474617763
1485668335190409579
794093298767067983
1580314075626591227
839538152669217003
1539651937663206907
788641232212659047
192299870477123967
1213458442836604307
1213154713040434147
754131106865047075
2112572854734000287
1268898183162721059
783212774559307467
1555122300998347331
2014857567678517095
1439246540458820151
142984223260556151
462414736179952519
1138945701349474375
119293177988963219
1483833519619347623
1806055498179477819
2028427186721583823
767823692780776135
1556945158740099119
1173839995611364599
512971479220996023
20741943950929991
1580423754290692471
1808458107177253235
932669698271306547
439322548332523395
2147281820643102191
621645627790465827
135862390849405627
221460335300575963
545412075738791731
1130248453479197991
750672543703102591
1809533669955792127
1814196939110112779
925996993305098967
861337183644544839
1703475268608127287
375950216693221959
1290730564898321715
1584185094908392359

Ranking

Python3 _

RankUserSizeTimeDateStatistics
1xnor870.17032022/07/14 18:56:330B / 44B / 40B
2orthoplex890.15802022/07/03 23:10:230B / 44B / 43B
3_ (btnlq)890.16602022/07/15 02:36:290B / 44B / 45B
4_960.16462022/07/14 14:29:480B / 40B / 54B
5Dingledooper960.16412022/07/14 14:30:080B / 40B / 54B
6lynn1130.16002022/07/02 09:32:410B / 51B / 60B
7Sisyphus (xnor)850.17392022/07/15 11:05:460B / 44B / 38B

Bash _

RankUserSizeTimeDateStatistics
1lynn760.14432022/07/02 09:29:260B / 37B / 35B
2tails760.09942022/07/02 13:33:120B / 36B / 36B
3tails (lynn)730.10092022/07/15 12:07:320B / 35B / 34B

gs2 _

RankUserSizeTimeDateStatistics
1tails831.13232022/07/14 15:38:1038B / 29B / 8B
2whio830.38672022/07/15 07:02:2034B / 31B / 10B
3whio (tails)781.32792022/07/15 23:13:4733B / 30B / 11B
4tails (whio)821.12832022/07/15 12:28:2434B / 32B / 8B

Language Ranking_

RankLangUserSizeScore
1Bashtails (lynn)7310000
2gs2whio (tails)789358
3Python3Sisyphus (xnor)858588

return to the top page