Submission #35864387
Source Code Expand
#include<stdio.h>
#define ll long long
#define pii pair<int,int>
#define fi first
#define se second
#define all(x) x.begin(),x.end()
#define sz(x) (int)x.size()
#define pb push_back
#define faster ios_base::sync_with_stdio(0);cin.tie(0);
#define mem(a,v) memset(a,v,sizeof(a))
const int xd[4]={1,0,-1,0},yd[4]={0,1,0,-1};
int main(){
float a,b;
scanf("%f%f",&a,&b);
printf("%.3f",b/a);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Batting Average |
| User | kurtis |
| Language | C (GCC 9.2.1) |
| Score | 100 |
| Code Size | 416 Byte |
| Status | AC |
| Exec Time | 4 ms |
| Memory | 1728 KiB |
Compile Error
./Main.c: In function ‘main’:
./Main.c:14:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%f%f",&a,&b);
| ^~~~~~~~~~~~~~~~~~~
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, 00_sample_03.txt, 00_sample_04.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 02_a_eq_3_00.txt, 02_a_eq_3_01.txt, 03_corner_00.txt, 03_corner_01.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 4 ms | 1728 KiB |
| 00_sample_01.txt | AC | 1 ms | 1660 KiB |
| 00_sample_02.txt | AC | 3 ms | 1720 KiB |
| 00_sample_03.txt | AC | 1 ms | 1612 KiB |
| 00_sample_04.txt | AC | 1 ms | 1660 KiB |
| 01_random_00.txt | AC | 1 ms | 1656 KiB |
| 01_random_01.txt | AC | 1 ms | 1724 KiB |
| 01_random_02.txt | AC | 1 ms | 1716 KiB |
| 01_random_03.txt | AC | 1 ms | 1676 KiB |
| 02_a_eq_3_00.txt | AC | 1 ms | 1676 KiB |
| 02_a_eq_3_01.txt | AC | 1 ms | 1724 KiB |
| 03_corner_00.txt | AC | 1 ms | 1716 KiB |
| 03_corner_01.txt | AC | 1 ms | 1652 KiB |