ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
Discussion of Problem
2098
. Lada Priora
Show all threads
Hide all threads
Show all messages
Hide all messages
WA5 solution
esbybb
2098
. Lada Priora
27 Apr 2020 13:25
4
WA5 solution
esbybb
3 Aug 2016 00:49
double dif = Math.abs(oform - neoform);
if (oform > neoform && dif > 0.000001) {
System.out.println("Cash");
} else {
System.out.println("Insurance");
}
Re: WA5 solution
fstilus // [SESC 18] // -{+}.team
23 Oct 2016 14:05
It really helps me to get AC. Thank you
Edited by author 23.10.2016 14:05
Edited by author 23.10.2016 14:05
Re: WA5 solution
esbybb
1 Nov 2016 04:42
no problem
Re: WA5 solution
Михаил
27 Apr 2020 13:25
Thanks, good advice
what is correct ans when WA #6 ....??
Al Arafat Tanin
2098
. Lada Priora
7 Mar 2018 02:45
1
what is correct ans when WA #6 ....??
Al Arafat Tanin
7 Mar 2018 02:45
bugurt & advice
imaginary friend
2098
. Lada Priora
15 Feb 2018 03:30
1
bugurt & advice
imaginary friend
15 Feb 2018 03:30
the only idea/key take-away of this problem is to properly combine calculation of integer and floating point numbers
Edited by author 15.02.2018 03:31
If you have WA #3
Smilodon_am [Obninsk INPE]
2098
. Lada Priora
23 Sep 2016 15:49
1
If you have WA #3
Smilodon_am [Obninsk INPE]
23 Sep 2016 15:49
When you have WA #3, perhaps you check condition in integer values, so use 64-bit integer values. To avoid WA #3 try below test:
100000
10000 10000
100 100
Correct answer is:
Cash
51400000.00
Good luck!
WA15
Lev_Kireenko 🐬
2098
. Lada Priora
2 Aug 2016 16:19
2
WA15
Lev_Kireenko 🐬
29 Jul 2016 02:10
what test?
Re: WA15
Olympic Bear (Nikolay Dubchuk)
2 Aug 2016 16:19
I think you loose precision. Try to find simple solution without accuracy loosing.
будет ли разбор задач?
dimaa
2098
. Lada Priora
9 Jul 2016 15:36
1
будет ли разбор задач?
dimaa
9 Jul 2016 15:36
New topic
Style:
flat
|
tree
|
nested
Thread Order:
bubble
|
fixed
© 2000–2024
Timus Online Judge Team
. All rights reserved.