Search found 11 matches
- Fri May 26, 2006 2:45 pm
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60447
Thank u ... I got it
My program had a bug, i fixed it and got AC. thank u very much for ur input/output.
- Mon May 22, 2006 10:19 pm
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60447
WA 406 -- All the input output i found all r correct
/*
Prime Cuts
*/
#include <stdio.h>
#include <iostream.h>
#include <math.h>
#define MAX 2000
void sieve(int *p)
{
int count;
int i, j;
count = (int)sqrt(MAX) + 1;
for(i = 4; i < MAX; i += 2)
p[i] = 1; // means i is not prime
p[2] = 0; // means 2 is prime
for(i = 3; i < MAX; i += 2)
p[i ...
Prime Cuts
*/
#include <stdio.h>
#include <iostream.h>
#include <math.h>
#define MAX 2000
void sieve(int *p)
{
int count;
int i, j;
count = (int)sqrt(MAX) + 1;
for(i = 4; i < MAX; i += 2)
p[i] = 1; // means i is not prime
p[2] = 0; // means 2 is prime
for(i = 3; i < MAX; i += 2)
p[i ...
- Wed May 17, 2006 6:49 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10106 - Product
- Replies: 98
- Views: 40168
didn't understand
Hi a123123123888,
I didn't understand wht u tried to say.
But i have solved the problem. It had the problem with the size of the array.
Thank u.
I didn't understand wht u tried to say.
But i have solved the problem. It had the problem with the size of the array.
Thank u.
- Mon May 15, 2006 11:05 am
- Forum: Volume 101 (10100-10199)
- Topic: 10110 - Light, more light
- Replies: 76
- Views: 39746
10110
I think if the number of bulbs is a perfect square, then answer is yes, otherwise no. Is my guess incorrect?
I get WA every time. Plz anyone tell me whts wrong here?
I have solved the problem.
Code: Select all
deleted
I have solved the problem.
- Sun May 14, 2006 9:58 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10106 - Product
- Replies: 98
- Views: 40168
10106
Hi,
my code gives proper output in all test cases I tested, but i am getting WA all the time. Plz any one tell me whts wrong, or give me some tricky input. Here's my code
/*
Product
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DIGIT 300
/* Adds preceding zero */
void ...
my code gives proper output in all test cases I tested, but i am getting WA all the time. Plz any one tell me whts wrong, or give me some tricky input. Here's my code
/*
Product
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DIGIT 300
/* Adds preceding zero */
void ...
- Fri May 05, 2006 7:15 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10093 - An Easy Problem!
- Replies: 52
- Views: 22925
there's another technique
Though i did not understand ur code properly(as u didn't give any description), it seems that u tried to convert a N-base number into decimal. Just think if a 62-base number with 10 digit is converted into decimal, it would cross long long very easily.
There is another technique for the problem ...
There is another technique for the problem ...
- Thu May 04, 2006 10:52 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101779
- Thu May 04, 2006 9:04 am
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27230
Thank u GURU
using scanf("%d\n"), i got acc.
my idea about "some other machines" was completely wrong.
Thank u very much.
my idea about "some other machines" was completely wrong.
Thank u very much.
- Wed May 03, 2006 8:20 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27230
Here's my code.. it gets WA each time
please check this out and give a response....
Thank u very much..[/code]
Thank u very much..[/code]
- Wed May 03, 2006 6:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27230
ashik's code is allright in my machine
ashik,
i also got a WA in 10008. my program also seems to be correct and is give exactly the sample output for sample input. I think we both having a critical problem--- our code does not give proper output on some other machines...
please someone tell us what to do?
Abhishek
Dhaka
i also got a WA in 10008. my program also seems to be correct and is give exactly the sample output for sample input. I think we both having a critical problem--- our code does not give proper output on some other machines...
please someone tell us what to do?
Abhishek
Dhaka
- Wed May 03, 2006 6:55 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10008 - What's Cryptanalysis?
- Replies: 55
- Views: 27230
ashik's code is allright in my machine
ashik,
i also got a WA in 10008. my program also seems to be correct and is give exactly the sample output for sample input. I think we both having a critical problem--- our code does not give proper output on some other machines...
please someone tell us what to do?
i also got a WA in 10008. my program also seems to be correct and is give exactly the sample output for sample input. I think we both having a critical problem--- our code does not give proper output on some other machines...
please someone tell us what to do?