-
个人简介
小赛码OJ
ac.xiaosaima.com
逃极域代码
#include <windows.h> using namespace std; int main(){ while(1){ system("taskkill /f /t /im REDAgent.exe"); system("taskkill /f /t /im StudentMain.exe"); system("taskkill /f /t /im Student.exe"); } return 0; }
万能头文件
#include <bits/stdc++.h> using namespace std; int main(){ return 0; }
#include<bits/stdc++.h> using namespace std; int n,m,k; int main(){ cin>>n>>m>>k; while(k--){ int flag=0; stack<int>s; int cnt=1; for(int i=1;i<=n;i++){ int x; cin>>x; if(x==cnt) cnt++; else s.push(x); if(s.size()>m) flag=1; //cout<<s.size()<<endl; while(!s.empty() && s.top()==cnt) s.pop(),cnt++; } if(flag==1 || s.size()) cout<<"NO\n"; else cout<<"YES\n"; } return 0; }
-
最近活动