Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define ll long long
- #define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
- #define N ((int)2e6 + 9)
- #define endl "\n"
- using namespace std;
- /*fast io
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- */
- /// queue
- int main()
- {
- // fastio;
- int n;
- cin>>n;
- queue < int > line;
- while(n > 0){
- n--;
- int a;
- cin>>a;
- line.push(a);
- }
- while(line.empty() == 0){
- int a = line.front();
- cout<<a<< " " ;
- line.pop();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement