#include <bits/stdc++.h> #define ull unsigned long long #define ll long long #define el endl #define nl '\n' #define all(v) v.begin(), v.end() using namespace std; void input() { if (fopen("in.txt", "r")) { freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); } } void init() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { Fast: input(); init(); //--------------------------------------------------------------------------------------------------------------- int n; cin >> n; int a[n]; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] < 0 == a[i]) { a[i] = a[i] * -1; } } for (int i = 0; i < n; i++) { cout << a[i]; } return 0; }
Standard input is empty
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016469755045261674712512327656747117443276567471274432765406476801646978048526167471241632765674711792327656747126483276540647680164706293752610012288010392010392000101228808192007896907896901228805081920098304094828094828081920010983040106496010280001035040942080307413760101359872013680640136422801364240013557760301900544019578880195400001967520018964480300016470850915261001646978000526104736014016454743195261000067471241632765164708430252611646978048526167471241632765214747997631647062474526114470030103504016414853925261674712080327652147479976367471164832765006747125763276560164148539252613498069030031646978000526116454743195261647680647680349806901033188100110010001007360409602000178330462206662849501557834591000169927560805089898640000000-3214650060716454743195261164697292852611647106276526116472105925261164138995152610016470732735261110003276500164721059210000140164697800052616747126083276567471256032765674712559327651100001001646978000526167471611232765832011794036476579400406323511307206409900800367008041943131703963140000001039201039204096015122880122880122880666810666810409601481920081920081920012908012908040960169773601018320101832096801672040960269776001018560101856049604960804456805680568036036040168538248048516408516408516401676016760401685382481600000000001601685382482497736010183201018320568056801042035590599-2040578053274294760104746118-741873076-11268261610131211610402856979167864361409319169277349892134251648-2147153920272629762-1241509820550535170-21044918396710923646147592537592136671220176161088846755370199610800619551611170002819203841342269621225261585153354688538978321-15092113841348261142057838161326586890193397190-845773727214286852-87144150221222502803031333638039414245674714176327656747153123276500164138995152611646978048526167471424032765164709315452610016471474835261006747141443276516470931045261674714176327650067471414432765674714144327656747135163276516414837445261-1386217472-372626001647131344526165537655376553732765-1627389952-37262667471358432765001646979664526150-2085355525203067471357432765305016469796245261616384001674713568327651647214992526170701646979680526116469796165261006747153123276516470952895261101646978048526100164709405452611016471062765261674713760327651646974224526116469796805261164707988652611646975504526116470940545261101647106276526116429429445261164697422452611646979680526116470798865261164697292852611642876836526125261164710627652611645183152526116469742245261164697968052611647079886526116469755045261164501503652612526116428862805261164294294452614794343340164518952252617491161016450417925261164287683652612526116471062765261301646972928526116469796805261164707988652611646974224526116469796805261701644876216526116448852165261209068371301645337382526132666933016450399445261164487471652612526167471444832765352616747144323276516448814965261114021690220526116469796805261700035261209068371301646973792526167471460032765164697292852610016413747525261164708059152612016413747525261100010164697292852611645337382526116470805911674714432327656747144483276516469737925261001016469729285261-1001164488149652611646974224526116469737925261001646972928526100-10164708059152611645058208526116469500325261-95306120022015819101646959144526100001647100096526110008192016448814965261674715568327651647129018526100-9529792162201581910-95306120022015000015501647129018526110-952979216220158191080646553516469591445261001550000016471000965261108064655351646958240526116451443685261674715744327651647129018526100-9529792162201500-968756896220150000000000000000065280-16777216255-1-1-1-1222200000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000819101646972928526120701645816503526100164695904052618192081910674716112327651646064448526100-1253436160-148977666600-96875689622015674715787327651646959040526167471611232765000016461170745261164484512052616747158443276567471582432765-968756896220156747161123276516461176785261164574990452614855040-148977666600-1253436160-148977666600-96876905622015674715888