10494 - If We Were a Child Again

All about problems in Volume 104. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

MD.Morsalin-Al-Saadi
New poster
Posts: 7
Joined: Wed Dec 17, 2003 2:53 pm
Location: Dhaka
Contact:

10494

Post by MD.Morsalin-Al-Saadi »

hellow,
I need some sample input to judge my solution. Can anybody send me input and output data as soon as possible?
Last edited by MD.Morsalin-Al-Saadi on Tue Dec 23, 2003 3:57 pm, edited 1 time in total.
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

Post by sohel »

Can anybody send me input and output data as soon as possible?
Whats the rush? Be patient.
what is your output for the following sample inputs.

15 / 2
100 / 10
5 / 5
5 / 6
15 % 1
15 % 16
100 % 10
100 % 11

:-?

And next time please mention the name and/or number of the problem before asking for help.
Last edited by sohel on Tue Dec 23, 2003 3:41 pm, edited 1 time in total.
MD.Morsalin-Al-Saadi
New poster
Posts: 7
Joined: Wed Dec 17, 2003 2:53 pm
Location: Dhaka
Contact:

Post by MD.Morsalin-Al-Saadi »

hi sohel,
Thanks for your sample input. the output are given below:

7
10
1
0
0
15
0
1
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

Post by sohel »

Saadi,
Your output seems to be correct. Perhaps there are other critical inputs.

Try the following:

1111111111111111111111 / 3
654654613213213213 % 321321
987987 / 32
65465416546514651 % 1
32132132132 % 651
12345 / 5

I can't think of any other critical inputs.
8)
MD.Morsalin-Al-Saadi
New poster
Posts: 7
Joined: Wed Dec 17, 2003 2:53 pm
Location: Dhaka
Contact:

Post by MD.Morsalin-Al-Saadi »

hi sohel,
Thanks again to send me sample input.The output are as follows:

370370370370370370370
161807
30874
0
569
2469
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

Post by sohel »

For the input
654654613213213213 % 321321

My AC program gives 69670.
But your program gives a different answer. Perhaps that is one of the mistakes.
Hope it helps.
:wink:
Junayeed
New poster
Posts: 50
Joined: Sat Oct 26, 2002 9:02 am
Location: Dhaka, Bangladesh

Post by Junayeed »

I am also getting WA. My program pass the above all test input. But still WA. I want some more input and output.

Thanks.
Whinii F.
Experienced poster
Posts: 151
Joined: Wed Aug 21, 2002 12:07 am
Location: Seoul, Korea
Contact:

Post by Whinii F. »

You can find some here:

http://online-judge.uva.es/board/viewtopic.php?t=3096

Note the search feature in this board is incomplete (strange), so it often misses some that should be found. Try browsing the forum before posting one. 8)
JongMan @ Yonsei
albet_januar
New poster
Posts: 35
Joined: Wed Apr 12, 2006 6:03 pm
Location: jakarta, indonesia
Contact:

Post by albet_januar »

did i do some mistake?
i got TLE..
if my algo right?

Code: Select all

deleted after AC..
thx b4...
Last edited by albet_januar on Sat Dec 23, 2006 6:44 pm, edited 1 time in total.
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan »

Everything is perfect, just use

Code: Select all

while(scanf("%s %c %llu", angka1, &opert, &angka2)==3)
Hope you get accepted.
Ami ekhono shopno dekhi...
HomePage
lnr
Experienced poster
Posts: 142
Joined: Sat Jun 30, 2007 2:52 pm
Location: Dhaka,Bangladesh

Post by lnr »

Code: Select all

changed
Last edited by lnr on Sat Sep 08, 2007 3:26 pm, edited 2 times in total.
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan »

Try the cases.

Input:

Code: Select all

100000000000000000000 / 100
1000000000000000000000 % 100
Output:

Code: Select all

1000000000000000000
0
Hope these help.
Ami ekhono shopno dekhi...
HomePage
lnr
Experienced poster
Posts: 142
Joined: Sat Jun 30, 2007 2:52 pm
Location: Dhaka,Bangladesh

Post by lnr »

Code: Select all

changed
Last edited by lnr on Sun Sep 09, 2007 1:00 pm, edited 1 time in total.
Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan »

For finding reminder, you can use other method, or you can say childhood method. Suppose you have to find X % Y, X can have 200 digits, but Y can have 6 digits. Then you know that the reminder will have less than or equal to 6 digits.

You are storing the full number(X). Thats why overflow occurs. Do you really have to store the full number when remindering?
Ami ekhono shopno dekhi...
HomePage
lnr
Experienced poster
Posts: 142
Joined: Sat Jun 30, 2007 2:52 pm
Location: Dhaka,Bangladesh

Post by lnr »

Code: Select all

Changed
Thank you.
Last edited by lnr on Mon Sep 10, 2007 11:10 am, edited 1 time in total.
Post Reply

Return to “Volume 104 (10400-10499)”