Search found 10 matches

by jesun
Sun Jul 13, 2008 8:22 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 55858

Re: 10035 - Primary Arithmetic WA why?

I have tried all sample inputs in this thread and got correct answers.However the on-line judge is giving WA.I can't find any bug.Could someone please help me to track down the bug? here is my code: #include <iostream> #include <cmath> #include <string> using namespace std; #include <stdlib.h> void ...
by jesun
Sat Jul 12, 2008 7:11 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65648

Re: 10189 - Minesweeper

THANKS a lot JAN as I got AC.You are truely a great helper.Thanks again for lending some of your valuable time to troubleshoot the problem.
by jesun
Wed Jul 09, 2008 8:29 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65648

Re: 10189 - Minesweeper

Thanks Jan.I have modified my code as per suggestion of U .However,still getting WA.here is my modified code:

Code: Select all

removed after AC
by jesun
Tue Jul 08, 2008 4:14 pm
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 65648

10189 - Minesweeper Why WA can anyone help?

I am getting WA for this easy problem & becoming frustrated.Can anyone give me a suggestion?here is my code

Code: Select all

removed after AC
by jesun
Thu Jan 17, 2008 7:24 am
Forum: C++
Topic: about reading multiple lines in C++
Replies: 5
Views: 2999

Actually I want to read those lines in C++'s string.
like

Code: Select all

string s[2];
int n;
while(n)
{
//read consecutive two lines in s
}
Can u help me?
by jesun
Wed Jan 16, 2008 5:04 pm
Forum: C++
Topic: about reading multiple lines in C++
Replies: 5
Views: 2999

about reading multiple lines in C++

Hi everybody.I want to know if there exists any method to read a pair of lines simultaneously with function like getline().I have tried it but it just let me to read a line only.Let me know the method of reading i/p format like below in C++ where I have to read both first and second line inside of a...
by jesun
Tue Jan 15, 2008 9:10 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 30506

THANKS!!!

THANKS JAN bhai for your i/p set.It's really helpful!!I have missed {'s','2'} matching set.that's why I was getting WA.Thanks again for your help to get AC.
AND oh yes! I shall try to remember to use code tags if necessary.
by jesun
Sun Jan 13, 2008 3:41 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 30506

getting WA in #401--can anyone help?

I have tried all test cases given in the forum and got the desired results.
But I still get WA .Can anyone do the favor to take a look at my code &
figure out the bug?thanks in advance.

my code:

Code: Select all

REMOVED AFTER AC.
[Edited by : Jan] Use code tags.
by jesun
Tue Jan 08, 2008 3:22 pm
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 18476

10370-WA,please help

I can't figure out the bug in my solution to problem no 10370?Could anyone help me? And sorry for opening a new thread although there is one because I didn't know about that rule/request.i hope I shall not do this in coming future. here is my code: #include <iostream> #include <iomanip> #include <ve...
by jesun
Tue Jan 01, 2008 11:20 pm
Forum: Volume 4 (400-499)
Topic: 458 - The Decoder
Replies: 71
Views: 14583

#458-got TLE,why?plz help

Regards.I got TLE for #458 but couldn't find the bug(s).Can anyboby help?
here is my code:

#include <iostream>
using namespace std;

int main()
{
char ch;
while((ch=cin.get())!=EOF)
{
if(ch==10)
cout<<"."<<endl;
else
{
ch-=7;
cout<<ch;
}
}
return 0;
}

Go to advanced search