2.小明种苹果(续)(100分) #include<iostream> #include<cstdio> #include<cstring> #define maxn 1010 using namespace std; int n,op,x,m,a[maxn]; long long sum; bool vis[maxn]; int main(){ //freopen("Cola.txt","r",stdin); scanf(&qu…
B. The Queue time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Finally! Vasya have come of age and that means he can finally get a passport! To do it, he needs to visit the passport office, b…