Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int fastscan(){
- int ret, num = 0 , negetive = -1 ;
- char ch ;
- //getchar();
- while(ch = getchar()){
- if(ch != ' ' || ch == '\n' ) break ;
- }
- if(ch == '-' ) negetive = 1 ;
- else num = 10* num + ch -'0';
- // if(ch == 'x') return -1 ;
- while(1){
- ch = getchar();
- if(ch == '\n' || ch == ' ' ) break ;
- num = 10* num + ch -'0';
- }
- if(negetive == 1) num *= -1 ;
- return num ;
- }
- int main(){
- int k ;
- while(1){
- k = fastscan();
- cout << k <<endl ;
- }
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement