这个代码哪里错了?sicily1134积木问题,wrong answer,

[复制链接]
查看11 | 回复2 | 2011-1-20 13:33:27 | 显示全部楼层 |阅读模式
#include
#include
using namespace std;
struct Data
{
long int a;
long int b;
};
int main()
{
Data data[10100];
int n=0;
long int s=0;
int i=0;
int j=0;
int k=0;
int m=0;
int d=9;
int count1=0,count2=0;
string array[10100];
while(cin>>n>>s&&n!=0)
{
count2=n;
for(i=0;i>data.a>>data.b;
}
while(d==9)
{

d=10;
for(j=0;js,跳过。j=1时,data[1].b=1s,跳过。
回复

使用道具 举报

千问 | 2011-1-20 13:33:27 | 显示全部楼层
C++?忘得差不多了,找个C++程序员问吧
回复

使用道具 举报

千问 | 2011-1-20 13:33:27 | 显示全部楼层
推荐使用STL容器
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行