Search found 7 matches

by sefakilic
Sun Jan 17, 2010 1:14 am
Forum: Volume 117 (11700-11799)
Topic: 11716 - Digital Fortress
Replies: 39
Views: 17557

Re: 11716 - Digital Fortress

Hello,
I have tried all of test cases above, all of them seem correct. But I am still getting WA. Here is my code:


code removed



--- code removed
if(sqrt(strLength)*sqrt(strLength) == strLength) {
--- code removed


Yes, I got AC. The problem is the line above. I think, following situation ...
by sefakilic
Tue Aug 25, 2009 3:19 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 29859

Re: 400 - Unix ls

FINALLY!!

ACed :D

It's such a tedious problem.
Thanks Daveon!
Here's some I/O from my ACed program that I believe will help correct P.E.s and W.A.s:

Input:


5
koala.jpg
australia.exe
kangaroo.txt
foo.bar
homer.simpson



Output ...
by sefakilic
Thu Aug 06, 2009 5:45 pm
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 12616

Re: 123 Searching Quickly

Hello, I am getting WA for the problem.
Here is my code, i can't find the error.


#include <iostream>
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
using namespace std;
string ignores[50];
string titles[200];
struct x {
string potential;
int index;
int indexintitle ...
by sefakilic
Fri May 08, 2009 8:00 am
Forum: Volume 102 (10200-10299)
Topic: 10286 - Trouble with a Pentagon
Replies: 7
Views: 5963

Re: 10286 - Trouble with Pentagon

Hello,

I am getting Presentation Error.
What can be the reason?

Code: Select all

REMOVED
Thanks.

edit: It seems ACCEPTED now. :s

-- sefa kilic
by sefakilic
Wed Mar 18, 2009 1:48 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 43837

Re:

Read the problem description:

You might assume that all tests data on this problem:
- will have an answer ,
- will be computable with less than 1000 iterations (additions),
- will yield a palindrome that is not greater than 4,294,967,295.

long is not enough for this problem. Use unsigned long ...
by sefakilic
Fri Mar 13, 2009 3:46 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47463

Re: 10323 - Factorial! You Must be Kidding!!!

My factorial function calculates the factorials of numbers between 8 and 13 [including them]. But I was getting WA.

I replaced the factorial function with the precalculated values. ( if (x == 8 ) printf("...") .....)

And I got AC.
by sefakilic
Wed Mar 11, 2009 8:17 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 47463

Re: 10323 - Factorial! You Must be Kidding!!!

I've read all posts in this topic.

I believe that I am doing right, but unfortunately I don't. I am getting WA.

Here is my code:

#include "stdio.h"

unsigned long iter_factorial(int n) {
unsigned long accu = 1;
unsigned long i;
for(i = 1; i <= n; i++) {
accu *= i;
}
return accu;
}

int ...

Go to advanced search