while(cin>>arr[0]>>arr[1]>>arr[2]>>arr[3]>>arr[4]>>arr[5]>>arr[6]>>arr[7]>>arr[8]){
can this work?
I can get AC!!!
Code:
while (true) {
if (cin.eof()) break;
This is the cause of WA.
This should be changed,
Code:
while (scanf("%d %d %d %d %d %d %d %d %d",
&data[0],&data[1],&data[2 ...
Search found 5 matches
- Sun Jul 30, 2006 10:45 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 117286
- Wed Jul 26, 2006 10:02 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319127
- Wed Jul 26, 2006 9:11 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319127
- Wed Jul 26, 2006 7:10 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319127
- Wed Jul 26, 2006 5:56 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 319127
100 Wrong Answer@@ (Plz help)
this is the #100 problem "The 3n+1"
#include<iostream>
using namespace std;
int compute(unsigned int ,unsigned int ,unsigned int ); //define function
main()
{
unsigned int h,i,j,max; //define variables
unsigned int temp[5000];
cout<<"enter two number i,j:"; //enter two number as it's range ...
#include<iostream>
using namespace std;
int compute(unsigned int ,unsigned int ,unsigned int ); //define function
main()
{
unsigned int h,i,j,max; //define variables
unsigned int temp[5000];
cout<<"enter two number i,j:"; //enter two number as it's range ...