10494 - If We Were a Child Again
Moderator: Board moderators
-
- New poster
- Posts: 7
- Joined: Wed Dec 17, 2003 2:53 pm
- Location: Dhaka
- Contact:
10494
hellow,
I need some sample input to judge my solution. Can anybody send me input and output data as soon as possible?
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.
Whats the rush? Be patient.Can anybody send me input and output data as soon as possible?
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
![:-?](./images/smilies/icon_confused.gif)
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.
-
- New poster
- Posts: 7
- Joined: Wed Dec 17, 2003 2:53 pm
- Location: Dhaka
- Contact:
-
- New poster
- Posts: 7
- Joined: Wed Dec 17, 2003 2:53 pm
- Location: Dhaka
- Contact:
-
- Experienced poster
- Posts: 151
- Joined: Wed Aug 21, 2002 12:07 am
- Location: Seoul, Korea
- Contact:
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)](./images/smilies/icon_cool.gif)
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)](./images/smilies/icon_cool.gif)
JongMan @ Yonsei
-
- New poster
- Posts: 35
- Joined: Wed Apr 12, 2006 6:03 pm
- Location: jakarta, indonesia
- Contact:
Last edited by albet_januar on Sat Dec 23, 2006 6:44 pm, edited 1 time in total.
Everything is perfect, just use
Hope you get accepted.
Code: Select all
while(scanf("%s %c %llu", angka1, &opert, &angka2)==3)
Ami ekhono shopno dekhi...
HomePage
HomePage
Try the cases.
Input:
Output:
Hope these help.
Input:
Code: Select all
100000000000000000000 / 100
1000000000000000000000 % 100
Code: Select all
1000000000000000000
0
Ami ekhono shopno dekhi...
HomePage
HomePage
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?
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
HomePage
Code: Select all
Changed
Thank you.
Last edited by lnr on Mon Sep 10, 2007 11:10 am, edited 1 time in total.