Submission #75938494
Source Code Expand
Copy
#include <stdio.h>#include <math.h>int main(void) {double pi = atan(1) * 4;int D;if (scanf("%d", &D) != 1) return 1;printf("%.30f\n", (D * 0.5) * (D * 0.5) * pi);return 0;}
#include <stdio.h>
#include <math.h>
int main(void) {
double pi = atan(1) * 4;
int D;
if (scanf("%d", &D) != 1) return 1;
printf("%.30f\n", (D * 0.5) * (D * 0.5) * pi);
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - π |
| User | mikecat |
| Language | C23 (GCC 14.2.0) |
| Score | 100 |
| Code Size | 197 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 1680 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 0 ms | 1620 KiB |
| 00_sample_01.txt | AC | 0 ms | 1644 KiB |
| 00_sample_02.txt | AC | 0 ms | 1616 KiB |
| 01_random_00.txt | AC | 0 ms | 1620 KiB |
| 01_random_01.txt | AC | 0 ms | 1616 KiB |
| 01_random_02.txt | AC | 0 ms | 1680 KiB |
| 01_random_03.txt | AC | 0 ms | 1664 KiB |
| 01_random_04.txt | AC | 0 ms | 1596 KiB |
| 01_random_05.txt | AC | 0 ms | 1632 KiB |
| 01_random_06.txt | AC | 0 ms | 1632 KiB |