Search found 8 matches

by Tourskey_911
Tue Aug 03, 2004 4:39 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49473

Why Runtime error in 102?

please give me some suggestion.Thank you. #include<iostream.h> typedef struct { int bi[3]; }bin; int Step(int i,int j,int k); bin b[4]; void main() { int i,j,k,step,ii,jj,kk; float min; char glass[4]={'#','B','C','G'}; for(i=1;i<=3;i++) { for(j=0;j<3;j++) cin>>b[i].bi[j]; } min=100000; for(i=1;i<=3;...
by Tourskey_911
Mon Jun 21, 2004 12:37 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182691

Ok ,I got it

Ok,I got it

and my code passed

Thank very very much!

:D
by Tourskey_911
Mon Jun 21, 2004 7:05 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182691

do I understand your meaning?

just now,I tested your code below: int main() { int a,b; while ( scanf("%d %d",&a,&b) == 2 ) { process_input(); } return 0; } I got it,you told me the system use datas in a file to test my code,right? That's to say I don't need to pay attention to "n",if the datas in the file ara all tested,the prog...
by Tourskey_911
Mon Jun 21, 2004 6:48 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182691

I still have problem

Oh,Thank u. But I think you misunderstanded me, yes,if I want to input 2 pairs of datas,I can do it like this: int n=2; for(int i=0;i<n;i++) { cin>>a>>b; } but I don't know how many pairs did the system need, That's to say I don't know "n", so I have no idea of programming. forgive my poor english. ...
by Tourskey_911
Sun Jun 20, 2004 10:45 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182691

help me with 100

I'm a new comer here,when I first come about the 100-The 3n + 1 problem It's really a very easy case,but what I wanted to know is its input. its input is like this: 1 10 100 200 201 210 900 1000 I don't know how many pairs of integers should I input or there is a rule to stop input,like "-1"? So tha...
by Tourskey_911
Fri Jun 18, 2004 6:39 am
Forum: C++
Topic: multiple files
Replies: 2
Views: 1633

I think Krzysztof Duleba means one subject with multiple files,

that's to say,we can only submit one file,

if we write our own *.h,how can we submit it?
by Tourskey_911
Wed Jun 16, 2004 7:19 am
Forum: Other words
Topic: "Mondriaan's Dream" made me crazy
Replies: 3
Views: 2137

"Mondriaan's Dream" made me crazy

I met a problem yesterday,It seemed I can finish it ,but in the end,I had no way,can you give me some ideas?

Thank U ^_^

here

http://acm.zju.edu.cn/show_problem.php?pid=1100
by Tourskey_911
Sat Jun 12, 2004 4:27 am
Forum: Other words
Topic: May I sign up a new ID now?
Replies: 0
Views: 687

May I sign up a new ID now?

I'm a newer here,just now I try to register a new ID for the Online Judge. but everytime I finished the table,the system told me like this: Incorrect information!! You must (at least): Type a minimum of two words for the name & surname (or the team name). Fill the E-Mail field, using only a valid IN...

Go to advanced search