Poj 3299 java

Source: Internet
Author: User

Today, I tried the poj platform, but I am a little nervous. I don't know if I can handle it myself.

I checked my poj question recommendations online, so I started to practice poj 3299 questions.

Later, I found that I failed to try it several times, which made me very depressed. So I checked the error in sample 1000, the public class should not be followed by "Humidex", but "Main ".

The first person will commit embarrassing things.

The second reason is that a self-compiled statement may cause a Presentation Error because the output result format is incorrect. Then, you can adjust the expression slightly.

 

Remember an article titled 50 questions recommended by POJ and ACM training scheme. I will repost it later. After all, I will try it later.

Secondly, it is a Web site, the JAVA solution Peking University acm poj source code, http://www.java3z.com/cwbwebhome/article/article17/POJ3.html

For more information, see.

Next, I read the example and tried to work out the 3299. The trial run was successful.

E = 2.718281828 middle cin = middle (t = 102, d = 102, h = 102 (I = 0; I <2; I ++ alpha = (alpha. equals ("H" h =} (alpha. equals ("D" d =} (alpha. equals ("T" t =} (alpha. equals ("E" System. exit (0 e2 = 6.11 * Math. pow (e, 5417.7530*(1/273. 16)-(1/(d + 273.16 (h = 102 h = t + 0.5555*(e2-10.0 System. out. print ("T" System. out. printf ("%. 1f "System. out. print ("D" System. out. printf ("%. 1f "System. out. print ("H" System. out. printf ("%. 1f "(t = 102 t = h-0.5555 * (e2-10.0 System. out. print ("T" System. out. printf ("%. 1f "System. out. print ("D" System. out. printf ("%. 1f "System. out. print ("H" System. out. printf ("%. 1f "(d = 102 e2 = (h-t)/0.5555 + 10.0 d = 1/(1/273. 16)-Math. log (e2/6.11)/5417.7530)-273.16 d = () Math. round (d * 10)/10 System. out. print ("T" System. out. printf ("%. 1f "System. out. print ("D" System. out. printf ("%. 1f "System. out. print ("H" System. out. printf ("%. 1f "}View Code

Okay, practice more, come on, little stars ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.