Wrong Answer
Code
#include<iostream>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
int main() {
int a[4];
int m=0,n=9;
for(int i=0;i<4;i++){
cin>>a[i];
}for(int j=0;j<4;j++){
if(a[j]>m)
m=a[j];
if(a[j]<n)
n=a[j];
}cout<<n<<endl;
cout<<m<<endl;
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1022 Minmax
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-06-24 06:23:01
- Judged At
- 2025-06-24 06:23:01
- Judged By
- Score
- 80
- Total Time
- 1ms
- Peak Memory
- 532.0 KiB