Submission #29467409
Source Code Expand
#include<stdio.h>
#include<math.h>
int main()
{
long h,a,b;
double x;
scanf("%ld",&h);
b=(h*12800000)+(h*h);
x=sqrt(b);
printf("%f",x);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Horizon |
| User | TCSP |
| Language | C (GCC 9.2.1) |
| Score | 100 |
| Code Size | 174 Byte |
| Status | AC |
| Exec Time | 5 ms |
| Memory | 2200 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:7:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%ld",&h);
| ^~~~~~~~~~~~~~~
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| random_01.txt | AC | 5 ms | 2096 KiB |
| random_02.txt | AC | 1 ms | 2200 KiB |
| random_03.txt | AC | 2 ms | 2016 KiB |
| random_04.txt | AC | 2 ms | 2004 KiB |
| random_05.txt | AC | 1 ms | 2092 KiB |
| random_06.txt | AC | 1 ms | 2172 KiB |
| random_07.txt | AC | 1 ms | 2092 KiB |
| random_08.txt | AC | 2 ms | 2028 KiB |
| sample_01.txt | AC | 1 ms | 2084 KiB |
| sample_02.txt | AC | 2 ms | 2088 KiB |