Page 2 of 4

10494

Posted: Tue Dec 23, 2003 2:01 pm
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?

Posted: Tue Dec 23, 2003 2:23 pm
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.

Posted: Tue Dec 23, 2003 2:35 pm
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

Posted: Tue Dec 23, 2003 2:41 pm
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)

Posted: Tue Dec 23, 2003 2:56 pm
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

Posted: Tue Dec 23, 2003 3:05 pm
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:

Posted: Sun Dec 28, 2003 6:17 pm
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.

Posted: Wed Dec 31, 2003 1:32 pm
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)

Posted: Tue Nov 28, 2006 12:50 pm
by albet_januar
did i do some mistake?
i got TLE..
if my algo right?

Code: Select all

deleted after AC..
thx b4...

Posted: Tue Nov 28, 2006 10:54 pm
by Jan
Everything is perfect, just use

Code: Select all

while(scanf("%s %c %llu", angka1, &opert, &angka2)==3)
Hope you get accepted.

Posted: Mon Sep 03, 2007 5:22 pm
by lnr

Code: Select all

changed

Posted: Wed Sep 05, 2007 5:30 am
by Jan
Try the cases.

Input:

Code: Select all

100000000000000000000 / 100
1000000000000000000000 % 100
Output:

Code: Select all

1000000000000000000
0
Hope these help.

Posted: Sat Sep 08, 2007 3:24 pm
by lnr

Code: Select all

changed

Posted: Sat Sep 08, 2007 5:40 pm
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?

Posted: Sun Sep 09, 2007 1:27 pm
by lnr

Code: Select all

Changed
Thank you.