Search found 2 matches

by gibber
Sat Jul 17, 2004 11:07 am
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47352

Your program has a mistake,please look at the tenth line of your program,you can't declare loss like this:" loss ",it's not like vector.Just declare loss like this:" loss[10000]",you will get AC.Good lucky to you! :wink:(I'm not good at English,I hope you can understand what I say :oops: )
by gibber
Sat Jul 17, 2004 6:35 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317849

I just changed your program a little,but I got AC,can you find the difference between yours and mine? :wink:
[cpp]
#include <iostream>
using namespace std;



int main()
{
int t, first, count,last,max;

while(cin >> first >> last){
max=0;
cout << first << " " << last << " ";
if(first>=last ...

Go to advanced search