Search found 36 matches

by AcmNightivy
Sat Mar 22, 2008 11:24 am
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 6998

Why I always got PE??I printed a extra blank line at last and got PE, as well as delete it~~WHY???
Here is the code~

Code: Select all

ACC..Sedefcho~Thanks~Really!
by AcmNightivy
Fri Feb 29, 2008 12:04 pm
Forum: Volume 1 (100-199)
Topic: 190 - Circle Through Three Points
Replies: 126
Views: 19240

Almost three weeks...got mad...I have test all of the cases I found..
Does there any problem with +0.000 and -0.000??
by AcmNightivy
Thu Feb 28, 2008 4:57 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 21780

help...
by AcmNightivy
Thu Feb 28, 2008 4:26 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 24814

turcse143 wrote:

Code: Select all

while (gets (str))
u don't take input into array. it cause TLE.
instead of it,u can take input by

Code: Select all

while(scanf("%c")==1)
then arrange ur code
hope all the error will solved
why i can't using gets()?Thanks~
by AcmNightivy
Thu Feb 28, 2008 4:24 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19263

i 've check my output but no extra blank in every line?why??
my output:

Code: Select all

"R
Ie
 n
Te
h
iD
ne
kc
,a
 r
tt
he
es
r
eo
fn
oc
re
e
 s
Ia
 i
ad
m,
.
"
Press any key to continue
by AcmNightivy
Thu Feb 28, 2008 4:18 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 29675

I change in using stdio..but still WA..Help!!Thanks!! #include <stdio.h> int main () { int i, j, k; int caseNum; int a, f; char num[10][10] = {"", "1", "22", "333", "4444", "55555", "666666", "7777777", "88888888", "999999999"}; scanf ("%d", &caseNum); for (i = 0; i < caseNum; i++) { scanf ("%d%d", ...
by AcmNightivy
Sun Feb 17, 2008 4:00 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19263

[quote="sapnil"]To AcmNightivy

Code: Select all

You print an extra space in starting of every
line of output
But I haven't print an extra space in every output?What's the meaning of this extra space??
by AcmNightivy
Sun Feb 10, 2008 6:28 pm
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 32957

now i got RE..and most of the cases gives the right answers..And i thought my arithmetic seem no mistakes..I used it and got AC in 369 before..My arithmetic is to calculate the number of the emement of factorial..But it may crash in this case: 9111 1;It will give the wrong answers..i can't find what...
by AcmNightivy
Sun Feb 10, 2008 1:10 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 24814

i got WA,RE,TLE for three simple problems for more than one page..my god..And now i can't find my mistakes in this problem..All the cases I found run correctly..Help.. #include <stdio.h> int main () { char str[12000]; char word[10000]; int i, j; int current; while (gets (str)) { current = 0; while (...
by AcmNightivy
Sun Feb 10, 2008 11:48 am
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 19263

i have got PE and try hard to correct it..but I got PE finally..I'm getting crazy :evil: ..help :cry: #include <stdio.h> #include "string.h" char str[102][102]; int main () { char result[102]; int count; int num = 0; int maxlen = 0; int i, j; while (gets (str[num++])); //for (i = 0; i < 26; i++) // ...
by AcmNightivy
Sun Feb 10, 2008 10:17 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 29675

Why i got TLE..It's really strange..And i changed using scanf() and printf (),it becamed WA..And i want to know what is blue flag,and what is the meaning of so called multiple input.It isn't like the input about this problem?Thanks in advance~ #include <iostream.h> int main () { int i, j, k; int cas...
by AcmNightivy
Sun Feb 10, 2008 9:21 am
Forum: Volume 4 (400-499)
Topic: 408 - Uniform Generator
Replies: 48
Views: 3840

mf~Thank you very much``Though i can't understand the theory clearly..And i know how poor my math is..Thanks``keep hard working~
by AcmNightivy
Sun Feb 10, 2008 7:33 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 21780

i have searched all of the thread and tested all of the cases given..and all of them give the right answers..but still get WA..Help..Thanks.. #include <iostream.h> #include "math.h" #include "string.h" bool IfPrime (int num) { if (num == 2 || num == 1) return true; else if (num % 2 == 0) return fals...
by AcmNightivy
Sun Feb 10, 2008 7:32 am
Forum: Volume 4 (400-499)
Topic: 414 - Machined Surfaces
Replies: 49
Views: 8781

my thought is to find the max num of the 'X', and do sub to find..And i have tested lots of cases..Help.! #include <iostream.h> #include <stdio.h> #include "string.h" int main () { char str[13][26]; int count[13]; int row; int max; int i, j; while (cin>>row && row) { max = 0; for (i = 0; i < row; i+...
by AcmNightivy
Sun Feb 10, 2008 7:30 am
Forum: Volume 4 (400-499)
Topic: 408 - Uniform Generator
Replies: 48
Views: 3840

Could someone help to find my mistake..i get puzzled..Thanks..And why
gcd (step, mod) == 1 is a Good Choice(found in other thread)..

Code: Select all

Remove After Getting AC

Go to advanced search