結果
問題 |
No.295 hel__world
|
ユーザー |
![]() |
提出日時 | 2017-09-15 00:34:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 841 bytes |
コンパイル時間 | 2,095 ms |
コンパイル使用メモリ | 161,884 KB |
実行使用メモリ | 8,576 KB |
最終ジャッジ日時 | 2024-11-07 21:07:01 |
合計ジャッジ時間 | 14,376 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 -- * 3 |
other | -- * 53 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep1(i,n) for(int i=1;i<=(int)(n);i++) #define all(c) c.begin(),c.end() #define pb push_back #define fs first #define sc second #define show(x) cout << #x << " = " << x << endl #define chmin(x,y) x=min(x,y) #define chmax(x,y) x=max(x,y) using namespace std; typedef __int128 ll; istream& operator>>(istream& i, ll& x){ x=0; string s; i>>s; int N=s.size(),it=0; if(s[0]=='-') it++; for(;it<N;it++) x=(x*10+s[it]-'0'); if(s[0]=='-') x=-x; return i; } ostream& operator<<(ostream& o, const ll& x){ ll tmp=x; if(tmp==0) return o<<0; if(tmp<0) o<<'-',tmp=-tmp; vector<int> ds; while(tmp) ds.pb(tmp%10),tmp/=10; reverse(all(ds)); for(int d:ds) o<<d; return o; } int main(){ while(true){ ll x; cin>>x; if(x==114514) break; cout<<x+1<<endl; } }