Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- const int dim=1<<17;
- char next_ch()
- {
- static int bp=dim;
- static char buff[dim];
- if(bp==dim)
- {
- fread(buff,1,dim,stdin);
- bp=0;
- }
- return buff[bp++];
- }
- void get(int &a)
- {
- a=0;
- char ch;
- int semn=1;
- do
- {
- if(ch=='-')
- semn=-1;
- ch=next_ch();
- }
- while('9'<ch||ch<'0');
- do
- {
- a=a*10+ch-'0';
- ch=next_ch();
- }
- while('9'>=ch&&ch>='0');
- a*=semn;
- }
- int main()
- {
- #ifdef HOME
- freopen("test.in","r",stdin);
- freopen("test.out","w",stdout);
- #endif
- int n,i,x;
- get(n);
- /*for(i=1;i<=n;i++)
- {
- get(x);
- }*/
- cout<<n;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement