#294

by ‮yeknom

Submitted 2 years 11 months ago
Mon Apr 26 19:45:44 CST 2021
Judger: judger1
Dataset Version: v4

49 ms / 40448 KB
Final 1
Problem: fun21.calc
Language: GNU C++ 11


#1

36ms / 40240KB / Point
Input
458 884
Output
0
Answer
1.01793864993064510046078423753883299298199347361342761130429472170600203785057217998466593995608274700929544261910044490173418023895976631052393088818738218877349575606235725290008942269460277841810599072055197762626914211069151397345236990190536658338388667063558136027670995521676918554196352573334442770425847202698837187448432003008865716258129532637468344324929856972458072138878909065115780399374290142024957120719830521633943208114059954934029666745056527130139251568154895510714558992546810774922962725964554920916416823050674845503812396043667228588672252690467279641302648690475979258917708847960612048779078363806536915743962107171447307819624395841503142667375608873644657089627531501292893264146435208803731255097232859517834241052170587316568000148804151789108954118582316175531655464480737256638630807795259143365990720271877006019843875660665162810405011004333307808483358391763336028077513271358546060089744279585621197683981866040618454567557762923700147474165650634254797813146064940339749877646364179157<...>
Checker Information
0.0 Good. P=1

#2

36ms / 40216KB / Point
Input
82 636
Output
51979306
Answer
0.50780078300464030119809846786255081269239863880670241940344372376475037826425379375152908739499232086639115079981878446905657108413820633746337064524008120822756206358691103872306008775818739297388704009884134425826140211160792670248812348631661366230749841844889466935738355017289942235058007357232251432909507346260552869884631214192145949237683949081658203196379357117799025190900128168446388788846269287366713588645274597618614174801328950442039727370132838857734976451053268181424255747059276641575118245882609431310095777492669193646931522346978122038777097645172628649354431391736804060398207073427926223296441408878443878286170964307684766379696066615089368101435415272477680078402384831589933942656585518535615119160599493213250973761556748776764853608208749196130986624849377965368036890855126119069140564964706616480178787992795879852333226872501302131560233975846137330459448901456496244902257217274651024707924473853264211800562181244590296444139225701103944320500537642686893406590962911368500193976291861700<...>
Checker Information
0.0 Good. P=1

#3

36ms / 40280KB / Point
Input
678 605
Output
5246950
Answer
1.49710464365373831301120690944669864921603321715105387633460462776690631201835152226225528583987788559242502988253007056583195984925875966799970979931567254450650702396755318262485855851136707327326769292563992431169300451864489642473579824537506646057354934274423669987143703086757052571985357741148508000423338762839617237725263927718517330103376054743610600167340161940993638949942547153800433306607283200969849331437890274521234912758656471567537298434537586065962516357775134204034982749033326634332141067313357829720210177790181976210312430296984174354957954515299751795931406823329192318006473230990665769527769283534443460787445438607107241730390553154297333829811775332292869466304529291599260381683149155142367927565976273899496956932732615901961849926000116963112433068843311115953729171077524194896396924302866195824143072922575173128563914713067872277371649193466693190752636467695687385051935582644924438196083802789534907527679301361442438454891261935668901163184401072478945113002100832331417837922391029271<...>
Checker Information
0.0 Good. P=1

#4

33ms / 40092KB / Point
Input
119 190
Output
63400843
Answer
1.11921024787453068649747077294299956143609678651112513481878923076194988824397027248159139469563805835653596585294527090354686292333381815151096898489174079762500141724930541757125263659161304486859101111440381951200660210482732539212994450890157202544145467366632259387839129087841333452987981597824592202714586595216218508760013497497693969656832267494516404408118020894871062017052129275628381087742078285411215027065543612052275137060257343309554374212472159865717317884970314840564603625463565012740180046033300049679663207270724616162356926790417368935880811725228616463268207545734295223297501147997355491716208235940525290064948551094823905799576928416943371940067291723879619146142947097093794639554857130040864164973680360786529077395452135896583958849552409495618588510330929756873880371966409647858785208597711250337218947144490794077851847311967309707904303714824374491000764699371956946132400307430604007882578353468097191316415964835656293727404249173295968171447145807600588788241099380846434264395117007271<...>
Checker Information
0.0 Good. P=1

#5

38ms / 40448KB / Point
Input
663 464
Output
59165482
Answer
1.69049064495774574292660687312098419479074369047678234513796993490786198866687672057919571124023773651301640886876743311521786682703349228131970305257845405375476245374115183870119362688227572828825296299642512750734411974830971211770799339542376569827611754827317065297761403460347657020617395577347217921400410580816351237911043630490020426641744914399473206112938977201728046393345070368441861494620536912249384809126967651435874452733661163900733232875739813020018094046594800566099228214619099768138228529685471007563395853374626591318929483016603905691145306805910645426918107495039370244087476676137898504275333121589758891449770029568287500055440260421099339703804039108933896283734903741349976326006690040314392884484750350402393224261750633105922232213526615724158018576486033838938298809753658143808203724938091942997700576811390133002725314810639496430423998566986033771553265393691148506924496418805060101016617839205942770426940889176493229068605073507300192205230366388840141077390608342240272507198099407641<...>
Checker Information
0.0 Good. P=1

#6

38ms / 40316KB / Point
Input
995 553
Output
14766731
Answer
1.89698533083120820076985077011298035079643822094669905077760423512921914926851424499117040330835201160574025880503191893489059407039507229104313205391727299705246397667991202879499410818830613294717262021680312767287704999085442445263310208292510295296046997765035455031048023203262765120843421845984107715853327201687315200934063493627120813329851182381803085413033432141226109908932765852011273259915469385176298129814894815954473153121443109191816452650555562836903268710220346020330483400178325330830811475357499872519955330848403529805699088432129397087927687801126398185192646704942271164304549092034865156844354074301707816222388229236930223176599689759010218728407094133147419776831901465741884096678317925430721234178253846590835282642718508930449271716369679278636680736474077120864984268399224625687601402634939224581083809247876524298759445290575950361298138775251247872045455982213012648696276168622126526181594715945500915748518285777429812540295770866815179345010171034783420532128048834641754981972258978833<...>
Checker Information
1.0 Good. P=2

#7

32ms / 40032KB / Point
Input
180 413
Output
16767351
Answer
0.93363306613421568309681527444461247057601074172481858463355703967319406701996577986626306704366896601774131152561847962740710301814519091895484578654917559871491590001447668958406466620416531098981628064606270655422479692617967742234610091538305213339161525299076352042746807603337705679426154231235611661005676954345178359627990521740618402617029155750935928165163772357521383277644239007100318370786309627370913724542671578333407373697090052120125956018707308699209141964662572164340999622279514241140894204765207708897696758610556279495993040831708606965302270784597439873953181708674877947869790706211764020528212347515813209829229815479520752537921409175552646934070384211463991943185239146507824889921869489848319961721287488482476768098926260298842813835397745837649366305233615318171481475425435907865972907284588536626966246575605392467538961914926822469506040792134283633207248925971786346117624051544811040453882801105010837724145679764016383328229485224133242317557742459525659169913402712313063767364721855885<...>
Checker Information
0.0 Good. P=1

#8

37ms / 40140KB / Point
Input
809 37
Output
52789775
Answer
6.61284581173111352393176211808500387476820686242449937335898195070429362205899771823951629107856054129457625933848295328119852920504206786505977956721812055165997034173765947814295728872894404973935911014351740494470304368624548715633026208020661639283034225588059521664816649854087474328317944681509411851356333057421619073609827539959731062684212026132234064007194046377918159292341772767922772016884663558427793867799886194353816621009462078399290263950736275680222097941414626870641846538697802158476199205408069288454148738919585412136717145157604385322194263485963831710320009216117593064010541074693245211484108477416669560609785086015895696186621013037677252921120435566110475745028574098731323975972616677281889314219496252441290133170687570086585198642459152747371674452630318421827184609573286915089754586276024880604920459585369474626095915099771252371074583190852286927672692555993447187545112180860074056271057043114030531641607455181004428319991604215566267816598953001473223140955938145225579959495605171595<...>
Checker Information
0.0 Good. P=1

#9

37ms / 40240KB / Point
Input
855 146
Output
10327179
Answer
3.42232797480359670907846032197483296047613157765481086166456659146256156594679261246871858482976258711072542468275212362556302827984724690516080542522323354439691490478018810915499600419770853055613444030912278482970364396523896606014492124763424079325296025112346016119409373275668985751645465047164341760898764798590874864175863136410271194647984285185703234333236347633780450974139381100875529744649282601030207971301586390864158985421375707398815080385364451518041748848823446298356273644735058862203126633335402938733553255957311917240342247411499145282666800969561785547630757503190584356070822977160143892523456869607512942096340511081341147638215778342203326462577616519637839721397591996274018239541575597509937673582095664536862486250764476748335751685106732394274714030950884146780485462179845970287801504623005421666732578195218198018433665495040590766141921881366536777828775119995175605280178500143095621872742911677497624571196906332308539914016551078841438094059245295733281596270361812889842895078858259937<...>
Checker Information
0.0 Good. P=1

#10

37ms / 40384KB / Point
Input
740 616
Output
0
Answer
1.55003141987425616100955743514971724043372747540304937253028319484760910690139489050278639652569160459382798911502649022088520633297124135168162647478456526932498063118404837702154461519530027609031041106977772188792313281360183055301433736061081959827432918877032093784675130072133160640073396444665718208681328341237393774324391952595831649613558319153037067555220643216867042064772168367467215676510791850868100403902526779533147642672340971645490582149400267063411059884355758452839826105834292938705655581781231284544166672624225639756439576870778430700256019990293380850247162725243286247846094835156363250822037823019906343025465789014557629199541504294432282698553657983464087804902246715610622864938329615934452538501406594853558772554492270464060754373427377504048363182528154461486916870095790588741563557679795888884768969123662037221691906900448382547606748772165354982801239374396681719516918581984038522556143666477156292133752959232711790570726100251734231153785622379941548270008131055975466090691941210121<...>
Checker Information
0.0 Good. P=1

#11

49ms / 40264KB / Point
Input
335 614
Output
57829200
Answer
1.04460768316453826703942309804796006747391647530258108799875998589136450623430051533094842434107609327052456333206933707268137801930352717316973920048692407358794460055513176014349088197271261931904536550399567448996965611094677032538960286675746321649882508045288637480171330784012668248456874870955590041594685192802255596748915106711627236153879779723378186235919002739497758830949244382710375620751219296943551358488836735160883491633169345749574246931749120360098433096186469378080339968014932788569986247937139556473116596016059832275811621940230739179330194452134105370361243865550062367814203128062250781057679783230570916974828153823902787088518690069364151459290953331843934961977458710580223023402137512185383246259787936948200452623816888613177137728950410922496008036075494600357537988320263463770673434826954818349704993674694007303827495326033326555755000796820071675905753734136792554077484515928992855257206310421284022711110972759479864758746874068080382180937676733400248508851050566635188945923301894595<...>
Checker Information
0.0 Good. P=1

#12

36ms / 40288KB / Point
Input
745 965
Output
0
Answer
1.24259464459541353382187233513002857190667738071595241375842863528815537434710371501148932952922178059314719449212109057572754789830971760626360306784517878655878702148677128908552361680187213322886821412472685243160388512531489314233955189998618146606335485264669202197196210888967723336114538752929036158530182894865619593610487598358769284342668447364444572456322606333273752115408646176934793371008091247493900334845373959406134393457709275421049226820809936905631440272584463021188195953068108659238691316523844794543937622758791301390912183485533392848603998348491499834501219805977281859505445796885993006180470988607375376650966622160718892148409774498506582861406125520646536062551791443903865282057292352138643234234708010816847091263390262403445914788934024825246764548037087216655984704098360435029204899126823117532471751530810886169760922672491962536761083179838704426756555737545231611143240926372263742054578103020023473049891609967195267320213698849206676704259315435832291811506553890883354780570776256346<...>
Checker Information
0.0 Good. P=1

#13

36ms / 40264KB / Point
Input
957 627
Output
0
Answer
1.74717817607345600138930415383326736542138235015940677158878618023920905472804145630328909863637576265012019369916231300842754878461768888155418339309646473377513375212261657517341577919370957695540702843211980138855967200679271631263667487613940879778039837423774061549219842895659769782854992096801624042371564607832952149309978917560519377191337125997378751296364848531971976027817484875642340210104898559704540380364758774487306380732790405215248258370058844912538064992094771630512062141657485368034198821446073587075299822251782141105000954735063610671055172731728719077398971288402838749333858741690895846639287008023676121644709056414383186364650319999851193355911722995640089744574504691164197978065848164424954845870264120045632079973266879458311572668584290469088823807670980794380825278270498248330637410187788763738809605837459207462723638869041437915312956229432019566748740825155326674449602252584157786190138779380595623168754473684751709292254811943520885027707316905066062997410613283282291451720050019918<...>
Checker Information
0.0 Good. P=1

#14

34ms / 40204KB / Point
Input
225 387
Output
5866692
Answer
1.07832773203438415726935070627792728212365917582282537364811937189863219028649337479442393690214818421456006700958885072806126278560496035039133303921279638538078954273031206998373819336502719229566739814609955731069091377855084384104057089707737550365169818746399770538103169229011265168380237080795212629420891692712811796173374371128840370706574781490811740464953482116732390414131183002886554786606958865690599234167613292462118915402814872295575859507651657652465265264536686131829912102216100827322966191083684921399812342463413695492309182595646645154466799107325837051496033761269694146759859704207027583526330766814477211031977873507090694108293497995352171718764195556731107259136329493810127421181040634084493739561950963267526536797281945367631292812053175533676623251455538060884515507275970889069676431165134487763211924691854215585235737558921345400460081360834184214345553280488569387593542303430513908365520509039039193149467341815602485988051278287663612511154418431450506031227200989672054420799110189839<...>
Checker Information
0.0 Good. P=1

#15

35ms / 40272KB / Point
Input
664 469
Output
0
Answer
1.68272294308905595401465668088953112022055840956538905029863409554711664645054423358164818552915440453554756398247115381240526177634506939022396826146984460425036332436526796364128775360483656772300844440089375629252186730862141306898517368029072660125048686708239834482824293459073635562294784717662497687445369210165039466645349304596227270002261151780116711430371761307341163212686262163994391916152045336739271317385601028583027546256102965891753553504984605213469422794013114135792692006144097155055045025407671994204738763792214376882190158022648628129848615958209493586772921849407611593697293358953298251381456186445117792798097825999692511081789602159688760174618974553564491491947095890004161005063205512867813539049628905150235961064038902652164282636807244426466745696738839113427712058646533909223966007340848837534929696392972287361500786807061330068162517706751343853477507281172202922237774731350675074423153135594292516613397868167482978182420740718747180202085165034595289638817926621540360913311128303965<...>
Checker Information
0.0 Good. P=1

#16

35ms / 40156KB / Point
Input
47 671
Output
34537027
Answer
0.37428521047183171876425114780786334046120635363387471881003891463639702713560059075461728572500580521810662309995741675352008811395208664956371851579011718341587177167501258498051773743155136903676085380787795980725456856554590990512284028864766953083703649839241354332337281583321049034994887370207613201917123363179543683703285237179716591371203552030710902146207889132776995928887078055938861252069105736017377056523951276951196104276583982103121031648043603233686357128785585649289504757172587179157425329175325919398978628099574107915310773522223741670823701837516656099952301937402963795597960034078808808918150031477692254853703385717469557698490398524849620127109681079626156459098246835182751026223342643148429192622662089650435627487188263979804301919465257410973289812137416929899192589841127399688943943508362789374110797860151953773511631187573853115523260649349071832700362930359150362094593394533122120477557231475213868682661764283260955859972761692034283418811733260593937770683968960471643775361034513175<...>
Checker Information
0.0 Good. P=1

#17

35ms / 40372KB / Point
Input
132 858
Output
25056059
Answer
0.55470019622522912201834173345699937634635331905311480195545431634264106896815545310840293569515241810361756646524054467323548896379966272387123341029118611657579854834986963588212775307113029919942665076865969281059329649431878657433370341619961565931674437612533136444939621467576654820157610505179057423518412464450204816151315998794171914013258549254042598509275095606145895074898167986660052851724043001882056171320318430113594213117811702908737324554336077020086386560030520111623423827759999241240601478329943353481371747146841841313725677983317998336103995985159919536153788073707145060016376063502577664061866128793787407529958184298180494530437916586368691854915763190288431850812241878709853662044334101470337869501832719154940515980505436316078515713547025388546914749343526278862073437525512299026762694507058063518732509984358229441151074198257026230905747276702233587817476270128838903830734930741924222949838248033075651481755842746624122101282860130651900831770881500456959357311012289813081075296653149086<...>
Checker Information
0.0 Good. P=1

#18

38ms / 40376KB / Point
Input
488 983
Output
34798727
Answer
0.99643310965374997216402548399889849942552743335540840433439428015876616416402713113791109098255718875012805463294887750031570823565642311540157592083245584202415424095809414863869168625844948354685641213304533125363617609461785249359550651570104245738323625865733459859108079222870628024063981604531692637473440373216471013512415386771204181254289226661228746631271338981606006410338774599729369963935847965485633212313071369238049525538335112816737520065697342574308891372553330109333023475458100446581022820948151277212546323413446675149598887244739794768438826362783834665618491279607455943771189187156020934311376987035112072175708968214389212620016978173132380928988006309312093504745038726908826403850229079455177949008278758770970994954003820231418692455116882030094683855175725886222456090312464231521891227716599812920477237772283482477446628842506176163046835905475302685447027704473428254452191458866666240819223394434477206296997245866822620430139246466450735963340450221681994156999502236886545054391740686892<...>
Checker Information
0.0 Good. P=1

#19

40ms / 40416KB / Point
Input
450 1
Output
55190040
Answer
30
Checker Information
0.0 Good. P=1

#20

35ms / 40148KB / Point
Input
25 200 
Output
38096672
Answer
0.5
Checker Information
0.0 Good. P=1
//Original Code:
//#include <self/utility>
//#include <self/debug>
//#include <self/rand>
//using namespace std;
//int a[240*1024*1024/4];
//
//int main()
//{
//	// freopen("input.txt","r",stdin);
//	for(int i=0;i<10000;i++)
//	{
//		int x=rand(0,240*1024*1024/4-1);
//		a[x]=rand(1,240*1024*1024/4);
//	}
//	
//	int res=0;
//	for(int i=0;i<10000;i++)
//	{
//		int x=rand(0,240*1024*1024/4-1);
//		res^=a[x];
//	}
//	cout<<res<<endl;
//	
//	// memset(a,0,sizeof(a));
//	return 0;
//}

//substituted with C++ Inliner
#ifndef _SELF_UTILITY
#define _SELF_UTILITY 1
#include <numeric>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <string.h>
#include <stack>
#include <assert.h>
#include <bitset>
#include <time.h>
#define Endl endl
#define mp make_pair
#define mt make_tuple
#define ll long long 
#define ull unsigned long long
#define pii pair<int,int>
#define over(A) {cout<<A<<endl;exit(0);}
#define all(A) A.begin(),A.end()
#define quickcin ios_base::sync_with_stdio(false);
#ifdef __TAKE_MOD
int mod;
#else
#ifdef __TAKE_CONST_MOD
const int mod=__TAKE_CONST_MOD;
#else
const int mod=1000000007;
#endif
#endif
const int gmod=3;
const int inf=1039074182;
#ifdef __TAKE_CONST_EPS
const double eps=__TAKE_CONST_EPS;
#else
const double eps=1e-9;
#endif
const double pi=3.141592653589793238462643383279;
const ll llinf=2LL*inf*inf;
template <typename T1,typename T2> inline void chmin(T1 &x,T2 b) {if(b<x) x=b;}
template <typename T1,typename T2> inline void chmax(T1 &x,T2 b) {if(b>x) x=b;}
inline void chadd(int &x,int b) {x+=b-mod;x+=(x>>31 & mod);}
template <typename T1,typename T2> inline void chadd(T1 &x,T2 b) {x+=b;if(x>=mod) x-=mod;}
template <typename T1,typename T2> inline void chmul(T1 &x,T2 b) {x=1LL*x*b%mod;}
template <typename T1,typename T2> inline void chmod(T1 &x,T2 b) {x%=b,x+=b;if(x>=b) x-=b;}
template <typename T> inline T mabs(T x) {return (x<0?-x:x);}
using namespace std;
#endif
#ifndef _SELF_DEBUG
#define _SELF_DEBUG 1
#ifndef _SELF_OPERATOR
#define _SELF_OPERATOR 1
using namespace std;
template <typename T>
ostream & operator<<(ostream &cout, const vector<T> &vec)
{
	cout << "{";
	for (int i = 0; i < (int)vec.size(); i++)
	{
		cout << vec[i];
		if (i != (int)vec.size() - 1)
			cout << ',';
	}
	cout << "}";
	return cout;
}

template <typename T1, typename T2>
ostream &operator<<(ostream &cout, pair<T1, T2> p)
{
	cout << "(" << p.first << ',' << p.second << ")";
	return cout;
}

template <typename T, typename T2>
ostream &operator<<(ostream &cout, set<T, T2> s)
{
	vector<T> t;
	for (auto x : s)
		t.push_back(x);
	cout << t;
	return cout;
}

template <typename T, typename T2>
ostream &operator<<(ostream &cout, multiset<T, T2> s)
{
	vector<T> t;
	for (auto x : s)
		t.push_back(x);
	cout << t;
	return cout;
}

template <typename T>
ostream &operator<<(ostream &cout, queue<T> q)
{
	vector<T> t;
	while (q.size())
	{
		t.push_back(q.front());
		q.pop();
	}
	cout << t;
	return cout;
}

template <typename T1, typename T2, typename T3>
ostream &operator<<(ostream &cout, map<T1, T2, T3> m)
{
	for (auto &x : m)
	{
		cout << "Key: " << x.first << ' ' << "Value: " << x.second << endl;
	}
	return cout;
}

template <typename T1, typename T2>
void operator+=(pair<T1, T2> &x,const pair<T1, T2> y)
{
	x.first += y.first;
	x.second += y.second;
}
template <typename T1,typename T2>
pair<T1,T2> operator + (const pair<T1,T2> &x,const pair<T1,T2> &y)
{
	return make_pair(x.first+y.first,x.second+y.second);
}

template <typename T1,typename T2>
pair<T1,T2> operator - (const pair<T1,T2> &x,const pair<T1,T2> &y)
{
	return mp(x.first-y.first,x.second-y.second);
}

template <typename T1, typename T2>
pair<T1, T2> operator-(pair<T1, T2> x)
{
	return make_pair(-x.first, -x.second);
}

template <typename T>
vector<vector<T>> operator~(vector<vector<T>> vec)
{
	vector<vector<T>> v;
	int n = vec.size(), m = vec[0].size();
	v.resize(m);
	for (int i = 0; i < m; i++)
	{
		v[i].resize(n);
	}
	for (int i = 0; i < m; i++)
	{
		for (int j = 0; j < n; j++)
		{
			v[i][j] = vec[j][i];
		}
	}
	return v;
}
#endif
#include <sstream>
void print0x(int x)
{
	std::vector <int> vec;
	while(x)
	{
		vec.push_back(x&1);
		x>>=1;
	}
	std::reverse(vec.begin(),vec.end());
	for(int i=0;i<(int)vec.size();i++)
	{
		std::cout<<vec[i];
	}
	std::cout<<' ';
}

template <typename T>
void print0x(T x,int len)
{
	std::vector <int> vec;
	while(x)
	{
		vec.push_back(x&1);
		x>>=1;
	}
	reverse(vec.begin(),vec.end());
	for(int i=(int)vec.size();i<len;i++)
	{
		putchar('0');
	}
	for(size_t i=0;i<vec.size();i++)
	{
		std::cout<<vec[i];
	}
	std::cout<<' ';
}
vector<string> vec_splitter(string s) {
	s += ',';
	vector<string> res;
	while(!s.empty()) {
		res.push_back(s.substr(0, s.find(',')));
		s = s.substr(s.find(',') + 1);
	}
	return res;
}
void debug_out(
vector<string> __attribute__ ((unused)) args,
__attribute__ ((unused)) int idx, 
__attribute__ ((unused)) int LINE_NUM) { cerr << endl; } 
template <typename Head, typename... Tail>
void debug_out(vector<string> args, int idx, int LINE_NUM, Head H, Tail... T) {
	if(idx > 0) cerr << ", "; else cerr << "Line(" << LINE_NUM << ") ";
	stringstream ss; ss << H;
	cerr << args[idx] << " = " << ss.str();
	debug_out(args, idx + 1, LINE_NUM, T...);
}
#define debug(...) debug_out(vec_splitter(#__VA_ARGS__), 0, __LINE__, __VA_ARGS__)
#endif
#ifndef _SELF_RAND
#define _SELF_RAND 1
#if __cplusplus < 201103L
long long _Rand_Gen_Num() {return 1LL*rand()*RAND_MAX+rand();}
int rand(int l,int r) {long long x=_Rand_Gen_Num();return x%(r-l+1)+l;}
#else
#include <time.h>
#include <chrono>
#include <random>
using namespace std; 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
#define rand(l,r) uniform_int_distribution<long long>(l,r)(rng)
#endif
template <typename Iterator>
void _m_random_shuffle(Iterator begin,Iterator end)
{
    for(Iterator it=begin+1;it!=end;it++)
    {
        iter_swap(begin+rand(0,it-begin),it);
    }
}
#define random_shuffle(a,b) _m_random_shuffle(a,b)
#endif
using namespace std;
int a[240*1024*1024/4];

int main()
{
//	// freopen("input.txt","r",stdin);
	for(int i=0;i<10000;i++)
	{
		int x=rand(0,240*1024*1024/4-1);
		a[x]=rand(1,240*1024*1024/4);
	}
	
	int res=0;
	for(int i=0;i<10000;i++)
	{
		int x=rand(0,240*1024*1024/4-1);
		res^=a[x];
	}
	cout<<res<<endl;
	
	// memset(a,0,sizeof(a));
	return 0;
}