I got it, thanks @brianfry713, that was! lol ... I was ordering the output. Now my output is in the same way of the input but adding the maxcicle :)
Run Time: 0.545
#include <stdio.h>
using namespace std;
int main()
{
unsigned long n;
unsigned int a,b,i,atemp,btemp;
unsigned short c=0,d ...
Search found 3 matches
- Fri Nov 22, 2013 1:20 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 321010
- Thu Nov 21, 2013 8:06 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 321010
Re: If you get WA in problem 100, read me before post!
Yes the output is ok,
Is my first submit, but always WA 
Code: Select all
1 10 20
10 1 20
1 999999 525
999999 1 525

- Wed Nov 20, 2013 3:21 am
- Forum: Volume 1 (100-199)
- Topic: 100 - The 3n + 1 problem
- Replies: 1394
- Views: 321010
Re: If you get WA in problem 100, read me before post!
Hi everybody, I'm trying with this fu/%=ing code...
Can anyone tell me what is going on?
Why WA?
C++ version 4.9.9.2
#include <stdio.h>
using namespace std;
int main()
{
unsigned long n;
unsigned int a,b,i,atemp;
unsigned short c=0,d;
while (scanf ("%d %d", &a, &b) != EOF){
if (a>b ...
Can anyone tell me what is going on?
Why WA?
C++ version 4.9.9.2
#include <stdio.h>
using namespace std;
int main()
{
unsigned long n;
unsigned int a,b,i,atemp;
unsigned short c=0,d;
while (scanf ("%d %d", &a, &b) != EOF){
if (a>b ...