Compare commits
3 Commits
da036a3a93
...
51edac9f6d
Author | SHA1 | Date |
---|---|---|
flykhan | 51edac9f6d | |
flykhan | 9341a66cab | |
flykhan | e749379ab0 |
|
@ -1,2 +1,2 @@
|
|||
**/*.exe
|
||||
**/gmon.out
|
||||
**/*.out
|
|
@ -0,0 +1,12 @@
|
|||
#include <cstdio>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int x;
|
||||
float y;
|
||||
scanf("%d%f", &x, &y);
|
||||
printf("%.3f km/l", x / y);
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
#include <cstdio>
|
||||
#include <cmath>
|
||||
|
||||
int main()
|
||||
{
|
||||
double x1, y1, x2, y2;
|
||||
scanf("%lf%lf", &x1, &y1);
|
||||
scanf("%lf%lf", &x2, &y2);
|
||||
printf("%.4lf\n",sqrt(pow((x1-x2),2)+pow((y1-y2),2)));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue