| ||||||||||
| 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 | |||||||||
这道题肿么回事?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator