delete pics to save space
This commit is contained in:
12
1.1427.cpp
Normal file
12
1.1427.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
#include<stack>
|
||||
using namespace std;
|
||||
int x; stack<int> stk;
|
||||
int main()
|
||||
{
|
||||
while(cin>>x,x) stk.push(x);
|
||||
while(stk.size()) { printf("%d ",stk.top()); stk.pop(); }
|
||||
puts("");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user