Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
WA了,但不明白为什么,谁能给看一下吗?#include <iostream> #include <vector> using namespace std; int main() { int t; cin>>t; for(int i=0;i<t;i++) { int n; cin>>n; char ch; int beg,end; vector<int> output(1000,0); while(n--) { cin>>ch>>beg>>end; for(int j=beg;j<end;j++) ++output[j]; } for(int k=0;k<end;k++) if(output[k]!=0) cout<<(char)(output[k]+64); cout<<endl; } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator