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 |
谁能帮我看看为什么总是re#include <iostream> using namespace std; int n,r,Max=0; const int maxn=210; int used[maxn]; void input() { int a,b; cin>>r; for (int i=0;i<r;i++) { cin>>a>>b; for (int j=a;j<=b;j++) { used[j]++; } } } int main() { cin>>n; for (int i=0;i<n;i++) { for (int j=0;j<maxn;j++) used[j]=0; input(); for (int k=0;k<maxn;k++) if (used[k]>Max) Max=used[k]; cout<<Max*10<<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