Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这道题肿么回事?

Posted by what_is_the_range at 2012-06-05 15:18:05 on Problem 2399
mayor's location怎么有超出街道范围的?以下是我OLE的代码,希望管理员检查一下数据
#include<iostream>
#include<stdio.h>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<cstdlib>
using namespace std;
int n,len[2];
char str[2][111];
int main()
{
     int t,i,j,s,p,q,x[111],y[111];
     scanf("%d",&t);
     while(t--)
     {
        scanf("%s%s",str[0],str[1]);
        len[0]=strlen(str[0]);
        len[1]=strlen(str[1]);
        scanf("%d",&n);
        for(i=0;i<n;i++)
        {
            scanf("%d%d",&x[i],&y[i]);
            while(x[i]>len[1]||y[i]>len[0])
                puts("orz");
        } 
    } 
     return 0;
}



Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator