Search found 8 matches

by Ardeshir81
Thu Jun 20, 2013 8:27 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124870

Re: 10189 - Minesweeper

HI!
I still have problem.
I compared my program with two others (both of them are accepted) :
https://github.com/fjsj/programming-challenges/blob/master/Minesweeper.c
http://p30up.ir/Bahar92/1371679179.txt

My output was exactly like them, with no difference, But I still get WA.
This is the last ...
by Ardeshir81
Thu Jun 20, 2013 12:39 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124870

Re: 10189 - Minesweeper

Thanks brian, you always answer me.

I tried putting a "cout << endl" at the end, but it didn't help

There must be an empty line between field outputs. Don't print an extra blank line at the end of the output.

Sorry I'm asking again, but I don't know where exactly that empty line should be.
May ...
by Ardeshir81
Tue Jun 18, 2013 6:41 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70255

Re: 10137 - The Trip

HI Everyone!
I've been stucked in this problem for a while, the answer of the second input example always was 12.00 (instead of 11.99)
Today I finally could do something that the answer becomes 11.99 .
But I couldn't understand the algorithm correctly.
I tried to figure it out but I always reached ...
by Ardeshir81
Tue Jun 18, 2013 1:26 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124870

Re: 10189 - Minesweeper

Thanks brian, you always answer me.

I tried putting a "cout << endl" at the end, but it didn't help, it's the modified code :
//n and m are more than 0 and less than 101 .

#include <iostream>

using std :: cout ;
using std :: cin ;
using std :: endl ;

int main ()
{
int n , m , TC = 0 ; //n for ...
by Ardeshir81
Mon Jun 17, 2013 9:59 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124870

Re: 10189 - Minesweeper

Hi friends!
I get WA too.
I tested the code with lots of test cases, I'm ALMOST sure there is nothing wrong with it.
I will appreciate any help and suggestion
//n and m are more than 0 and less than 101 .

#include <iostream>

using std :: cout ;
using std :: cin ;
using std :: endl ;

int main ...
by Ardeshir81
Fri Jun 14, 2013 8:58 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318150

Re: If you get WA in problem 100, read me before post!

THANK YOU!
It's accepted.
BUT how the problem describes algorithms is different from what it wants.
In the book it didn't say something like "cin >>I >> j" , so me (and probably most begginers) think they should just get two inputs and terminate the program.
by Ardeshir81
Thu Jun 13, 2013 1:03 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318150

Re: If you get WA in problem 100, read me before post!

Thank You @brianfry713
BUT when I did that I get another problem.
When I check "My Submissions" it says "running" and after a while it writes : "Submission Error"
This is the modified code :
//All input integers will be less than 1,000,000 and greater than 0 .
//There will be 2 inputs , i and j ...
by Ardeshir81
Wed Jun 12, 2013 6:11 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318150

Re: If you get WA in problem 100, read me before post!

HI Everyone.
I'm getting WrongAnswer too.
I don't understand why, this is my code :
//All input integers will be less than 1,000,000 and greater than 0 .
//There will be 2 inputs , i and j , for all integers from i to j we should get the Cycle-Length of '3n + 1' formula and return the maximum ...

Go to advanced search