Homework Introduction
Submission
Submit your code in a .zip
, .rar
, or .tar
file.
Please compress source code directlt rather than compress the folder containing the code.
Output Rule for HW4:
1. When output a number, use "%g" to output. It can manage the precision and avoid extra "0" for double value.
2. Note that, the general solution of a quadratic equation \(ax^2 + bx + c = 0\) is \(x_1 = \frac{-b+\sqrt{b^2-4ac}}{2a}\) and \(x_2 = \frac{-b-\sqrt{b^2-4ac}}{2a}\). In the cases that you need to output two solutions, output \(x_1\) first and then \(x_2\).
3. Pay attention to the spaces (" ") and new line ("\n"). They do matter in OJ.
Please name your source file as "hw4.c" and compress it as a .zip/.rar/.tar file to upload
Problem
Problem |
---|
#1: HW4 |
- Status
- Finished
- Problems
- 1
- Open Since
- 2018-10-25 00:00
- DDL
- 2018-10-30 23:59
- Extension
- 0.0 hour(s)