#3797. [GESP202506 六级 C++] 第 4 题
[GESP202506 六级 C++] 第 4 题
以下关于栈和队列的代码,执行后输出是( )。
stack<int> s;
queue<int> q;
for (int i = 1; i <= 3; ++i) {
s.push(i);
q.push(i);
}
cout << s.top() << " " << q.front() << endl;
{{ select(1) }}
1 33 13 31 1