QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#68532#5211. A+Bhuxiaoye10 ✓3ms3588kbC++141.1kb2022-12-17 10:00:242022-12-17 10:00:25

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-12-17 10:00:25]
  • 评测
  • 测评结果:10
  • 用时:3ms
  • 内存:3588kb
  • [2022-12-17 10:00:24]
  • 提交

answer

#include <iostream>
#include <string>
using namespace std;

int A[5010], B[5010], sum[5010];

// 把字符串s存储的整数按照大整数的格式存入数组a中
void s2BIG(string s, int a[])
{
    int la = s.length();
    for (int i = 1; i <= la; i++)
    {
        // 数组a和十进制写法是反过来存储的
        a[i] = s[la - i] - '0';
    }
    a[0] = la; // 大整数的位数保存在a[0]
}

// 将x+y的结果存入数组z中
void addBIG(int x[], int y[], int z[])
{
    int s=max(x[0],y[0]);
    z[0]=s;
    for (int i = 1; i <= s; i++)
        z[i] += x[i]+y[i];
    for (int i = 1; i <= s; i++)
    {
          z[i+1]+=z[i]/10;
          z[i]%=10;
          
    }
	if(z[z[0]+1])
	{
		z[0]++;
	}
}

// 用一行输出a记录的大整数(包括换行符)
void printBIG(int a[]) 
{
	int la = a[0];  // 获得a的位数

	for (int i = la; i >= 1; i--) // 从高位输出到低位
	{
		cout << a[i];
	}
	cout << endl; // 最后要输出一个换行
}

int main()
{
    string a, b;
    cin >> a >> b;
    s2BIG(a, A);
    s2BIG(b, B);
    addBIG(A,B,sum);
    printBIG(sum);
    return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 1
Accepted

Test #1:

score: 1
Accepted
time: 2ms
memory: 3392kb

input:

23026
24910636

output:

24933662

result:

ok single line: '24933662'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3528kb

input:

565514251
5888

output:

565520139

result:

ok single line: '565520139'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3464kb

input:

594435032
36695381

output:

631130413

result:

ok single line: '631130413'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3316kb

input:

1
1

output:

2

result:

ok single line: '2'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3352kb

input:

7
6

output:

13

result:

ok single line: '13'

Subtask #2:

score: 1
Accepted

Test #6:

score: 1
Accepted
time: 0ms
memory: 3404kb

input:

432229901
913442217

output:

1345672118

result:

ok single line: '1345672118'

Test #7:

score: 0
Accepted
time: 2ms
memory: 3520kb

input:

221301
5

output:

221306

result:

ok single line: '221306'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3364kb

input:

2625510
478837888

output:

481463398

result:

ok single line: '481463398'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

1
9

output:

10

result:

ok single line: '10'

Subtask #3:

score: 1
Accepted

Test #10:

score: 1
Accepted
time: 2ms
memory: 3512kb

input:

9551444277
121871940297256

output:

121881491741533

result:

ok single line: '121881491741533'

Test #11:

score: 0
Accepted
time: 1ms
memory: 3356kb

input:

879194263204990370
120588298789110683

output:

999782561994101053

result:

ok single line: '999782561994101053'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3524kb

input:

1
999999999999999999

output:

1000000000000000000

result:

ok single line: '1000000000000000000'

Test #13:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

184289169
865257372274469

output:

865257556563638

result:

ok single line: '865257556563638'

Test #14:

score: 0
Accepted
time: 2ms
memory: 3424kb

input:

65306989765
31

output:

65306989796

result:

ok single line: '65306989796'

Subtask #4:

score: 1
Accepted

Test #15:

score: 1
Accepted
time: 0ms
memory: 3392kb

input:

947270878949025110
9193608369230

output:

947280072557394340

result:

ok single line: '947280072557394340'

Test #16:

score: 0
Accepted
time: 2ms
memory: 3440kb

input:

740711992438213142
5635415550257

output:

740717627853763399

result:

ok single line: '740717627853763399'

Test #17:

score: 0
Accepted
time: 2ms
memory: 3416kb

input:

999999999999999999
999999999999999999

output:

1999999999999999998

result:

ok single line: '1999999999999999998'

Test #18:

score: 0
Accepted
time: 0ms
memory: 3436kb

input:

77287938
548006771437978305

output:

548006771515266243

result:

ok single line: '548006771515266243'

Test #19:

score: 0
Accepted
time: 2ms
memory: 3404kb

input:

358536605398737221
96190470

output:

358536605494927691

result:

ok single line: '358536605494927691'

Subtask #5:

score: 1
Accepted

Test #20:

score: 1
Accepted
time: 2ms
memory: 3392kb

input:

337255304832158119
6390426

output:

337255304838548545

result:

ok single line: '337255304838548545'

Test #21:

score: 0
Accepted
time: 0ms
memory: 3428kb

input:

26145683183032222
94072

output:

26145683183126294

result:

ok single line: '26145683183126294'

Test #22:

score: 0
Accepted
time: 0ms
memory: 3460kb

input:

84621330927
89111338228698572

output:

89111422850029499

result:

ok single line: '89111422850029499'

Test #23:

score: 0
Accepted
time: 0ms
memory: 3508kb

input:

351975737
88175270701

output:

88527246438

result:

ok single line: '88527246438'

Test #24:

score: 0
Accepted
time: 2ms
memory: 3464kb

input:

28161
3883140582560

output:

3883140610721

result:

ok single line: '3883140610721'

Subtask #6:

score: 1
Accepted

Test #25:

score: 1
Accepted
time: 3ms
memory: 3416kb

input:

532563874233398665942582439076063683393959785291760331092474677568248810808273382940785848929691070344450895665777207202581862409624443570320813049761364001561165850372428368095100386067585411830900346030937690325069085157626288265206707369638585884065753505995759391174402450166386453546246598314927...

output:

117480756325714140603232677762002116438971869021093456248434772576209017896828582485866035097355793821028412006264692876860359949703254464553296670067114821407922291209977167188569878692830753963833670465584777583701876221784511940758353874540289562422775859679933762675335967547597645783250174945496...

result:

ok single line: '117480756325714140603232677762...4476304804736293589422250453663'

Test #26:

score: 0
Accepted
time: 3ms
memory: 3508kb

input:

812900234489153849766077974512187794533050786126922172904269693459906728390894180094667621474146514672702635204908846298912172173869321293840754879291798642874234541386585273032332797717062162409480260275012968770232882274655271964076301703130105889148347444437039092182545776714058608703142620547466...

output:

332000381372439345633213023306066917843192999071659205069898889161205720885719046125473215341072727017499431712272050284264380022851249271393430554584734760209534730936015618411984870144694544206171409446419240249773367782856592888042609471824140288844183090176397357840547211630845040362658399331306...

result:

ok single line: '332000381372439345633213023306...2413156894601797207562267881268'

Test #27:

score: 0
Accepted
time: 3ms
memory: 3532kb

input:

876826199713937120014771911468574786994009556771618041019524440795033553995626305624051723218407197352599910468864897674271258713596872334236898010270339330809279568299040460374866763877171613558978732381171821108168688407515705356803034074528037634163309077855560226323859183231802433507263455878099...

output:

172021881005782376272769748219029024804973378147272982547209200710908552911322013720941868160732668333207846679151809947798120353746953157993733879626123334917404887952372379295179821468090967880531301665134464706009589309112589945364268398432904661780230009107507433374903053464088492534932188722102...

result:

ok single line: '172021881005782376272769748219...9382734856777766634463611585328'

Test #28:

score: 0
Accepted
time: 3ms
memory: 3472kb

input:

150962154575520683487763802869054495391007355870864854081032771508739626949068758315872339789194388842009239776870808758791040332296677495426183113372468977432528379559347083656281620769866076029398201666451188822894246506186958630291509526326668984822829967410625696245517952331222500688445688203977...

output:

108574953173906849728475366414785313924497346238943564727937276926441074442052739673246414029197133256158950936740180559576435818613286203687212788018237954132624512918914329311249056193623204871512290702183216619857251951371755917290348186532263620158240208914549801665872406717428129667532249111049...

result:

ok single line: '108574953173906849728475366414...8016082768179889096379253991181'

Test #29:

score: 0
Accepted
time: 0ms
memory: 3376kb

input:

1
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...0000000000000000000000000000000'

Test #30:

score: 0
Accepted
time: 1ms
memory: 3496kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

199999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '199999999999999999999999999999...9999999999999999999999999999998'

Test #31:

score: 0
Accepted
time: 2ms
memory: 3424kb

input:

319135977306299009656276579556132141025588666893132459927840556789902206743602549818265955964372152630048366686773943884611266672286089524762851559324905562255992757593443215028523777026622069363260493435648253144544621285082273838838808028333979952474711102359853207117987181430258099427962079585935...

output:

319135977306299009656276579556132141025588666893132459927840556789902206743602549818265955964372152630048366686773943884611266672286089524762851559324905562255992757593443215028523777026622069363260493435648253144544621285082273838838808028333979952474711102359853207117987181430258099427962079585935...

result:

ok single line: '319135977306299009656276579556...5128179161670994907547765960939'

Subtask #7:

score: 1
Accepted

Test #32:

score: 1
Accepted
time: 3ms
memory: 3536kb

input:

166270622343387570144869035999833122929155398707087292325038556971676971208188167870785373811637259140056890396962331959562299785543168004984378774456571918716139632010890398124722792152616610922911262359609763927041596317613921198500419120497898457889189564589845345729683871954384751162252997436722...

output:

880646134460748138897340337533179163120790708144757974029630194606063589509000795099528828849033623217146501680612627050576245917982880382388550406909490340487080305140694350601233862880966356987265878662261488550491972506573895072732141930662834781286364524005699860608776565945206366350275580191745...

result:

ok single line: '880646134460748138897340337533...7622952400406845443998499179517'

Test #33:

score: 0
Accepted
time: 0ms
memory: 3384kb

input:

676819415245312858079232964040256816382570881089551323377009411635369435757117127184125939039137889441536127419964091898377425750723296067471717278882579674499578476983161478960451876196582783098748911362736930844699366774412266569935461493185048833858475187154082845108622611401469295874725124481292...

output:

849891828189021012730945970264879053068056917315536428757883857959206799971470249775740924834660168665302263427723639505857799182924060047720843687991952441437197040644780683976378291261499412826726303951760729411262317882626757490259486508319971966760880649239598028626011089612682022876356882748865...

result:

ok single line: '849891828189021012730945970264...3381013631517336775590027329401'

Test #34:

score: 0
Accepted
time: 3ms
memory: 3412kb

input:

413408819896719738999841524313998294829960124389794133845433540683052672404620457160731442533622973995596191413647968535857705578216220323792818192867767669702483339060565388511779405100920439558200707207920291801463107019325221088087416410756987760212998520441100722897308215553340091839609617808675...

output:

485884542048901435261145928046078654164342434563588666714705635072606062267920118170901752544743970824855820792943619842578033343800732820022932790958795634363331315606066223741603578452083153986472494640932938017091669158719642989850945441619245386614658601620301365143564072579466574196668652975138...

result:

ok single line: '485884542048901435261145928046...4733466369457623350519540299194'

Test #35:

score: 0
Accepted
time: 2ms
memory: 3528kb

input:

710485007829117421866358178554623708690786025889344301337743494184905747937420294682370523479056321239609137032244891507681457722190391887321726237949992065880400174218075629199744436642348891344266346819143216183704407212080656673069273574444512856999594283528563590554290517556766029816938034517872...

output:

334715481205851181932331013708658273941453138768034792080597596184049857334454669983517617269955874968798015547793862949226353520701782240987329883023084378336597528012493843135186799913361670849159473228066522108404250689508160135510609000014244322437541750212557558422929876414510235753980109808491...

result:

ok single line: '334715481205851181932331013708...4235367089675090196035189449155'

Test #36:

score: 0
Accepted
time: 3ms
memory: 3512kb

input:

777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777...

output:

777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777...

result:

ok single line: '777777777777777777777777777777...7777777777777777777777777777782'

Test #37:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111110'

Test #38:

score: 0
Accepted
time: 2ms
memory: 3452kb

input:

691052833405563832730744148963738237665240667427344453555080662894024966586219914041333321884572479598871488869340906513282046785591723898358711763903670652719417932012410357378152423784587945088276370524214091504460440919950816555510713871663798289787898178266010775858994820117016937100541475779484...

output:

691052833405563832730744148963738237665240667427344453555080662894024966586219914041333321884572479598871488869340906513282046785591723898358711763903670652719417932012410357378152423784587945088276370524214091504460440919950816555510713871663798289787898178266010775858994820117016937100541475779484...

result:

ok single line: '691052833405563832730744148963...3763818543867092559398920287116'

Subtask #8:

score: 1
Accepted

Test #39:

score: 1
Accepted
time: 2ms
memory: 3328kb

input:

486415045186840559797678755365399390344232193044385882641962930698450351132863864037839353132108112801921764107656086464616915258126730157092350141579797620555801255564275293263126095463181491308970908414473410944584674930077637963473888272997152879319529755703101053701296658536162675853208668775433...

output:

486415045186840559797678755365399390344232193044385882641962930698450351132863864037839353132108112801921764107656086464616915258126730157092350141579797620555801255564275293263126095463181491308970908414473410944584674930077637963473888272997152879319529755703101053701296658536162675853208668775433...

result:

ok single line: '486415045186840559797678755365...7976605156942853383557508223139'

Test #40:

score: 0
Accepted
time: 1ms
memory: 3472kb

input:

577486172104965127647603330586049743114464157964398158433939312499219159918607998652544934161553967438002777031212366333211760781064824919527807489266623225186782355319933278760426821386490280241590379266349274338712375910989305763482087634933890171631888953369398599348163897020225261503979602473510...

output:

313185083632025460672033074268122790548365436075831111044806083429613644577918234477292739830655337986220556780270371785098763732706300613888931358502482490163419590651134502910912753492583400667719863775642986750009005461384351466915417440154105799200821199214689477838206310175035044223323100410905...

result:

ok single line: '313185083632025460672033074268...3163319252328904287117091493437'

Test #41:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

977751986547888124597698495104272050844056746968009889880420604630748692600740052512449979547181983586433738096537830599919155567769441624783221027029646520011469861279111914696845294550511430421924765081820065744540387261401981803354403739691675496557928470562282821267798429627696116028318962113037...

output:

101074088962142793660256958721291556571806541845866944398445369240057292879267881408748394946933824748727267976902273533377587163459442123083849602742711919307571949166912320431479156281604606140398341634286515377176540991044857924760384204134666233781619837321210105660797668122942891368090578694430...

result:

ok single line: '101074088962142793660256958721...3521539726769782343686739388536'

Test #42:

score: 0
Accepted
time: 3ms
memory: 3420kb

input:

184882725201040666506574260982575126793536377841295097899369547441907576148392632393578254421580135557974337068358014267230725598533871095673336721290131892878613380599794058163691475731315388497651788211899059735641869355576152680402789237057979595783579278352765375639653534859395283383526080027448...

output:

626311088785085145478337764733379259573285628108329203594393635246159217831993985576862245473559949967166601274168918847335376669368294914409937629465910911466552146856987548070430473912473821874818730256493880533661119335849029254279867148554913457207205738141341523580920587627192429492780447269633...

result:

ok single line: '626311088785085145478337764733...7300447067286619221218076886884'

Test #43:

score: 0
Accepted
time: 0ms
memory: 3428kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...9999999999999999999999999999998'

Test #44:

score: 0
Accepted
time: 2ms
memory: 3532kb

input:

444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999999'

Test #45:

score: 0
Accepted
time: 2ms
memory: 3548kb

input:

357748217594855689716173498565622253591454440759149734553364358848003888977973117658899811213120683105827140362560287054903397652304251766479925029374115440299632915209357050725526565188963647872059201322844928707232909610166642510581807781895611257620720629887560704720725176165643669323685622386579...

output:

357748217594855689716173498565622253591454440759149734553364358848003888977973117658899811213120683105827140362560287054903397652304251766479925029374115440299632915209357050725526565188963647872059201322844928707232909610166642510581807781895611257620720629887560704720725176165643669323685622386579...

result:

ok single line: '357748217594855689716173498565...9240168795794174091653760238062'

Subtask #9:

score: 1
Accepted

Test #46:

score: 1
Accepted
time: 2ms
memory: 3348kb

input:

756888993272314347182668287736890306527482334095384734663192255418922691087388999199964701819326530641461657962943138994997853787294985241266048312705940817628838279840233115265535224376160492539340393069148051899230858343085149163766053938016434131685262013375130130775063051793386994446560485013665...

output:

507744122123604635424526422811474325650131414063972289744783148263044128093925906051933217226320145385476836502952452744830325479479483198796485235676910829325658758653586668995428754555831907520091316266065256168793240829894162468433517171715327485161215759336203725942666674695114891517208342402520...

result:

ok single line: '507744122123604635424526422811...5424393487859428394977363029602'

Test #47:

score: 0
Accepted
time: 3ms
memory: 3532kb

input:

529001650384270844508097214020249538419911240814958048824956533949245193239625978061830610352070827074308068854776389205895270911455820351534122252220104959218145867792271005263570672217795186012443271871385617435830825642699152695005181401737806869906622761996911189558280445860043960712004035957689...

output:

529002567735018885736097986559996906487099756652504672196270517284164428338320721943456015351892819719951947516434045851993151774787383169086883820219213512732052574675190813669963654225296896677969875729506221345764370124776312565916658294934852290462450789801607633992847257115058786451170497946878...

result:

ok single line: '529002567735018885736097986559...2166364959379624194413921032602'

Test #48:

score: 0
Accepted
time: 3ms
memory: 3456kb

input:

963579870689055405329320326931997681752515143759419042883002111208656014619321046929878815707791631469536402289251923965409883194389661752897799984903272437996633737364514265159326168997137595970414953913059931375395309819589370158024280310046524770330978506149880842392423323381193659479004327597657...

output:

172441095793531164864334307135781085632188044651751208384062300918913428418466052562609434978435944686659755638531515357079486944318571284733790755399911752596677828552605651863022147164035317772921174795713273051934252697063857075816093536778949391981144287881286963259770463698982911366775609270830...

result:

ok single line: '172441095793531164864334307135...7202995604433500406957070405798'

Test #49:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

786210910651368740326523065222650627713408518278872283028552920541061192996886956440172516086035184626786410160798602741565046863562642942863861983232255277739582567461472483799013509781033407672758155299473163479020209066027791499303629206691724047796006748632870358317076087487821158540452764195258...

output:

563565596637803516554442390540386593833148224964939219801384453032711052339231062233978254331910478221441230218147847074957945180231923916153170145822879822104731022930899344132458977461471804035738788898521789430206641903881010556227821130031918926786970744759034922779100431090302382311762946189262...

result:

ok single line: '563565596637803516554442390540...6417849306361438668640296412805'

Test #50:

score: 0
Accepted
time: 1ms
memory: 3340kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...1111111111111111111111111111110'

Test #51:

score: 0
Accepted
time: 2ms
memory: 3388kb

input:

988407017387411571624098787887784190772316052773652593645132658705731189005613979623162748559719416178118451846640943364276934287360300110020902231190916857894057961881415167787198501009163376681827342659591535043673678399469205846936498456028998989221244217263177787046944469735349820064887350116244...

output:

988407017387411571624098787887784190772316052773652593645132658705731189005613979623162748559719416178118451846640943364276934287360300110020902231190916857894057961881415167787198501009163376681827342659591535043673678399469205846936498456028998989221244217263177787046944469735349820064887350116244...

result:

ok single line: '988407017387411571624098787887...2620686122836916125278075774696'

Test #52:

score: 0
Accepted
time: 2ms
memory: 3528kb

input:

787226809564359714055802897003345522701542350221396525331383767435679781345577561295294657162080636389187244340035245735379084347532368309768105095036992090057291881912812857190293949576165485725626548445218325998962535388203186656143068812887119280554684161935023065659524070462145743778962845754877...

output:

700476045093737377597143040057979181807777902003382357340896290492985716697168593732027926766479697997790049673991513205215271213422954322865628571304973207891491430048295885916439881798329578405912618890192555162283778139956428663900622137309788079587211261607312721937335285051233236105205570118938...

result:

ok single line: '700476045093737377597143040057...4758284443938404507391224680535'

Subtask #10:

score: 1
Accepted

Test #53:

score: 1
Accepted
time: 1ms
memory: 3496kb

input:

943819754802869222401641950670597611565597137805222993701119868514083441036651114526118120906820147780745834474505154376824624293969279744870481935631962707899703821601313909986563188136109822146207481102862377124154333273700635786953737538877418230185468904998292848637357410643895825512100257504725...

output:

943819754802869222401641950670597611565597137805222993701119868514083441036651114526118120906820147780764869427427188556962073373954942583265173252694855882815464795552847350648753724016938997379469793209635359799689367394360077189343883790638677047144897721115097169434513544001457976111078387232857...

result:

ok single line: '943819754802869222401641950670...5008702062585845064596863267113'

Test #54:

score: 0
Accepted
time: 3ms
memory: 3532kb

input:

215643577349479982168904580695368790322749133798006469619935354660557585791091756452451034960022587171402068837617563526412623235139383416275015576788975428491318207162055129282318790709404772832176592586633183660929740952393063563098024501921424668259382128349342098598045397823847106701801897834185...

output:

283455704155849670921823240602135663772300889617220927309434312097428594569396900008297508178118927805131634404633963895051127223290675059442610110227275072920983603313180662535895479001061445210620090548821315749728834572509833397167361029786058574371508376617388851958536102586683043734724585733174...

result:

ok single line: '283455704155849670921823240602...6598565106342994716347473295278'

Test #55:

score: 0
Accepted
time: 3ms
memory: 3420kb

input:

164899068658046071355954725709799680858192308518600060208630676624810368086274881710365636124755345038545034563161056111219590028875405457922338852332313579159418946965983426843167063408904787077292767197425899243446441206173724964828200388359751111977217423428234937201852988695122438844678016262342...

output:

173466068992118936160873105672909959606621854028983881291121209225217770196367157405843301714887754754732719719713452169097095175063188594916405480453540295445052786400456432057879829891637573909646461063410277026738260691506648749745698826565780236018709573128348133185917844566976514661093937625137...

result:

ok single line: '173466068992118936160873105672...4661993830858202662009921904443'

Test #56:

score: 0
Accepted
time: 3ms
memory: 3532kb

input:

400694895825378143989824692558038794901806403868771766178283700762342253941627655986794688665480376843895100802674380866225996577163029979624300080873696950653598246271086231184107005255773182914283493446695342111872192627971341966470784255375754644631057114785825040895136786898142430721632984327834...

output:

120188094836461949465999174295947081246385439085621976007374050913952689827176144428229879274697121128952716568449399007895290463859636928759321243241768333416283610742521928083256908420881276756316167520604024919882600552774386382630458970294923446956495839212698159553379377705602794819557563693578...

result:

ok single line: '120188094836461949465999174295...6387406546635307382789697878468'

Test #57:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

199999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '199999999999999999999999999999...9999999999999999999999999999998'

Test #58:

score: 0
Accepted
time: 2ms
memory: 3432kb

input:

953212793614539311304353497775057415584469602097107028297666621558061076164032211810713254674489206059791343971829916707635874574310189830760748668877142597973468976954727650700267341406765707676519475081898241860870497455288428107178629579284436424922303263892181647345500213569198694347362277779722...

output:

953212793614539311304353497775057415584469602097107028297666621558061076164032211810713254674489206059791343971829916707635874574310189830760748668877142597973468976954727650700267341406765707676519475081898241860870497455288428107178629579284436424922303263892181647345500213569198694347362277779722...

result:

ok single line: '953212793614539311304353497775...9686971638434863613175156600389'

Test #59:

score: 0
Accepted
time: 2ms
memory: 3588kb

input:

717090882997839124721720612015353972359711444431241335015067719457824263016017471595031130395685314771637907766304932158852116388372110346137499069636661206855594205565077702822178743153549989357384170308529926443729473708662549284876519488859752115702744845239190495992238271202656928633700700713659...

output:

163156059326809150827487521018552725710382675693011281428718011328519973634467668994201005886090123292656625099110269740872418753017569977445204402182250424201468986207678121620484644220596824443084923952804657656495797070740507728535377083077745744221181254182463635808542698314378397890992624461989...

result:

ok single line: '163156059326809150827487521018...8480094838056678164434592968422'

Extra Test:

score: 0
Extra Test Passed