Submission #18722832
Source Code Expand
#include <bits/stdc++.h>
#define rep(i, N) for(int i = 0; i < (int)N; i++)
#define CREP(i, l, r) for(int i = l; i <= r; i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef vector<int> vi;
int main() {
int n;
int a,b,c,d;
cin >> a >> b >> c >> d;
int ans = min(min(a,b),min(c,d));
printf("%d\n", ans);
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - ABC Preparation |
| User | samari06 |
| Language | C++ (GCC 9.2.1) |
| Score | 100 |
| Code Size | 372 Byte |
| Status | AC |
| Exec Time | 10 ms |
| Memory | 3760 KiB |
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:10:9: warning: unused variable ‘n’ [-Wunused-variable]
10 | int n;
| ^
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 | handmade_00.txt, handmade_01.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, sample_01.txt, sample_02.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| handmade_00.txt | AC | 10 ms | 3512 KiB |
| handmade_01.txt | AC | 3 ms | 3460 KiB |
| random_00.txt | AC | 3 ms | 3656 KiB |
| random_01.txt | AC | 2 ms | 3696 KiB |
| random_02.txt | AC | 2 ms | 3460 KiB |
| random_03.txt | AC | 2 ms | 3536 KiB |
| sample_01.txt | AC | 3 ms | 3760 KiB |
| sample_02.txt | AC | 2 ms | 3616 KiB |