Advertisement
len2910

FRFW

Apr 21st, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.49 KB | None | 0 0
  1. use std::{collections::VecDeque, io};
  2.  
  3. static mut V: VecDeque<i128> = VecDeque::<i128>::new();
  4. macro_rules! read {
  5.     () => {
  6.         unsafe {
  7.             let k;
  8.             if V.is_empty() {
  9.                 let mut buf = String::new();
  10.                 io::stdin().read_line(&mut buf).unwrap();
  11.                 buf.split_whitespace()
  12.                     .for_each(|x| V.push_back(x.parse().unwrap()));
  13.             }
  14.             k = V.pop_front().unwrap();
  15.             k
  16.         }
  17.     };
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement