10070 - Leap Year or Not Leap Year and ...
Moderator: Board moderators
Ferdous
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.
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.
this time WA
what next...............?
what next...............?
Is this Big Num problem??.
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._
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._
Ouch!.
Thanks shamim!.
Freaking Big Num problems... have to work on that![:o](./images/smilies/icon_eek.gif)
Later!, and keep posting!.
_.B._
http://online-judge.uva.es/cgi-bin/Onli ... Info:42085
Freaking Big Num problems... have to work on that
![:o](./images/smilies/icon_eek.gif)
Later!, and keep posting!.
_.B._
http://online-judge.uva.es/cgi-bin/Onli ... Info:42085
BigNum indeed.
Greetings!
Used length 1001 for the BigNums, and got WA.
Changed to 2001 and got ACed![:D](./images/smilies/icon_biggrin.gif)
Keep posting!
Used length 1001 for the BigNums, and got WA.
Changed to 2001 and got ACed
![:D](./images/smilies/icon_biggrin.gif)
Keep posting!
_.
-
- New poster
- Posts: 5
- Joined: Thu Aug 22, 2002 9:41 am
- Location: Taiwan
- Contact:
Re: 10070 Output Limit Exceeded
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.haaaz wrote:Maybe 10000 elements are not enough?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]
-
- Learning poster
- Posts: 55
- Joined: Sat Jan 24, 2004 9:30 pm
- Location: Chittagong
- Contact:
try with this
Output: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
If you can pass this input , hope your code will get A.C.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.
cuii e
- dovier_antonio
- New poster
- Posts: 47
- Joined: Fri Feb 18, 2005 5:00 am
- Location: Havana, Cuba
10070
code removed...
Thanks...
Thanks...
Last edited by dovier_antonio on Fri Feb 03, 2012 9:46 am, edited 1 time in total.
- dovier_antonio
- New poster
- Posts: 47
- Joined: Fri Feb 18, 2005 5:00 am
- Location: Havana, Cuba
10070
code removed...
thanks!
thanks!
Last edited by dovier_antonio on Fri Feb 03, 2012 9:46 am, edited 2 times in total.
- dovier_antonio
- New poster
- Posts: 47
- Joined: Fri Feb 18, 2005 5:00 am
- Location: Havana, Cuba
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!
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!
Last edited by dovier_antonio on Fri Feb 03, 2012 9:48 am, edited 1 time in total.
- dovier_antonio
- New poster
- Posts: 47
- Joined: Fri Feb 18, 2005 5:00 am
- Location: Havana, Cuba
Now I got accepted!
Thanks!
Thanks!
Last edited by dovier_antonio on Fri Feb 03, 2012 9:48 am, edited 1 time in total.
- dovier_antonio
- New poster
- Posts: 47
- Joined: Fri Feb 18, 2005 5:00 am
- Location: Havana, Cuba
Now I got AC! Thanks...
Last edited by dovier_antonio on Fri Feb 03, 2012 9:48 am, edited 1 time in total.