Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. int read_input() {
  2.  
  3. int _integer=0;
  4. char _char=0;
  5.  
  6. while(_char<48){
  7. _char=getchar_unlocked();
  8. }
  9.  
  10. while(_char>=48){
  11. _integer=10*_integer+_char-48;
  12. _char=getchar_unlocked();
  13. }
  14. return _integer;
  15. }
  16.  
  17. int read_input() {
  18.  
  19. int _integer=0;
  20. char _char=0;
  21.  
  22. while(_char<'0'){
  23. _char=getchar_unlocked();
  24. }
  25.  
  26. while(_char>='0'){
  27. _integer=10*_integer+_char-'0';
  28. _char=getchar_unlocked();
  29. }
  30. return _integer;
  31. }
Add Comment
Please, Sign In to add comment