Page 4 of 16
Posted: Sun Mar 07, 2004 10:26 am
by Ferdous
I changed it but still getting WA !!
changed form of bulukulu festival year test:
if((div400 || (div4 && !div100)) && (div5 && div11))
printf("This is bulukulu festival year.\n");
Ferdous
Posted: Tue Mar 09, 2004 7:10 pm
by osan
your output
for
55000
2200
This is bulukulu festival year.
This is bulukulu festival year.
output should be
This is an ordinary year.
This is an ordinary year.
Is this Big Num problem??.
Posted: Sun Mar 21, 2004 1:55 am
by _.B._
Greetings!.
Will QWord (0 .. 18446744073709551615) be good enough for this problem in Free Pascal?, or is this a Big Num problem?.
Have anyone tried it this way?.
Thanks in advance!.
_.B._
Posted: Sun Mar 21, 2004 5:21 am
by shamim
I don't think it will work since this is indeed a BigNum problem. The judge data normally contains some values larger than 10^100 so that the basic data types can not handle such number.
Ouch!.
Posted: Sun Mar 21, 2004 6:16 am
by _.B._
Thanks shamim!.
Freaking Big Num problems... have to work on that

Later!, and keep posting!.
_.B._
http://online-judge.uva.es/cgi-bin/Onli ... Info:42085
BigNum indeed.
Posted: Tue Jun 08, 2004 10:09 pm
by _.B._
Greetings!
Used length 1001 for the BigNums, and got WA.
Changed to 2001 and got ACed

Keep posting!
Posted: Sun Aug 29, 2004 12:38 pm
by Nikola
hey! it's bulukulu, not buluculu!
Re: 10070 Output Limit Exceeded
Posted: Fri Sep 03, 2004 5:08 pm
by Meng-Hsuan Wu
haaaz wrote:Meng-Hsuan Wu wrote:This is my source code for problem 10070. When I ran it on my computer, it worked well when I input a long number. But I got "Output Limit Exceeded" when I submit it. Can anyone help me?
[c]#include <stdio.h>
#include <string.h>
main()
{
char s[10000];
int y[10000];
//...
[/c]
Maybe 10000 elements are not enough?
Thanks for your suggestion. One day in May 2004, I used getchar() continuously to read the year until I reached a "\n" instead of opening a long array to store it, and it worked out.
Posted: Sat Sep 18, 2004 6:48 pm
by alu_mathics
try with this
2000
3600
4515
2001
22000
22055
22220
330000
330015
330220
456464484515645448647512343674234567564234564784234564754742345647424564
456464484515645448647512343674234567564234564784234564754742345647424565
456464484515645448647512343674234567564234564784234564754742345647424566
456464484515645448647512343674234567564234564784234564754742345647424567
456464484515645448647512343674234567564234564784234564754742345647424568
456464484515645448647512343674234567564234564784234564754742345647424569
456464484515645448647512343674234567564234564784234564754742345647424560
456464484515645448647512343674234567564234564784234564754742345647424500
234324234245646448451564544864751234367423456756423456478423456475474234564742456
23423423
65678645656377386585675675675622789235723451275172892374016526347623483274237487123848912347891237489123561237612734612375617234672461237123567123465781465714657136475617856127651237845173657813465781263478561234787856781349658716345786134785617823651782367845123675647823563784657834657834657834657861347856134785634786578134657816347856178567182346578134657823465723456123761789035617856163417454
838286831260478655
838286831260478400
838286831260478650
838286831260478655
228623681252857800
228623681252857815
228623681252857830
228623681252857810
2000
3600
4515
2001
Output:
This is leap year.
This is leap year.
This is huluculu festival year.
This is huluculu festival year.
This is an ordinary year.
This is leap year.
This is bulukulu festival year.
This is an ordinary year.
This is leap year.
This is bulukulu festival year.
This is leap year.
This is huluculu festival year.
This is bulukulu festival year.
This is huluculu festival year.
This is leap year.
This is bulukulu festival year.
This is leap year.
This is an ordinary year.
This is an ordinary year.
This is an ordinary year.
This is leap year.
This is an ordinary year.
This is leap year.
This is huluculu festival year.
This is huluculu festival year.
This is leap year.
This is an ordinary year.
This is an ordinary year.
This is huluculu festival year.
This is leap year.
This is huluculu festival year.
This is an ordinary year.
This is huluculu festival year.
This is huluculu festival year.
This is huluculu festival year.
This is huluculu festival year.
This is an ordinary year.
This is leap year.
This is leap year.
This is huluculu festival year.
This is huluculu festival year.
This is an ordinary year.
If you can pass this input , hope your code will get A.C.
Re: HI~
Posted: Sat Mar 19, 2005 1:30 am
by mikeblas
[quote="10153EN"]In the problem description it states that "All the years will not be less than 2000 (to avoid the earlier different rules for leap years). Please don
10070
Posted: Tue Mar 22, 2005 6:04 pm
by dovier_antonio
code removed...
Thanks...
10070
Posted: Tue Mar 22, 2005 6:35 pm
by dovier_antonio
code removed...
thanks!
Posted: Tue Mar 22, 2005 6:43 pm
by dovier_antonio
In my code I'm testing with 10000001,
In other words I say :
for any number n :
n is divisible by 3 :
If the sum of all digits are divisible by 3 too
n is divisible by 5 :
If the least digit is 0 or 5
n is divisible by 4 : ______
If the number made by the two least digits is divisible by 4 -----> xyrvab (4 / (10a + b))
n is divisible by 11 :
If the sum of all digits in positions odds, less, the sum of all digits in positions even are divisible by 11
n is divisible by 100 :
If the two leasts digits are 0s
n is divisible by 400 :
If the number made with the 4 leasts digits are divisible by 400
Please, help me! Thanks in advance!
Posted: Wed Mar 23, 2005 6:01 am
by dovier_antonio
Now I got accepted!
Thanks!
Posted: Wed Mar 23, 2005 6:02 am
by dovier_antonio
Now I got AC! Thanks...