# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1089932 | solitaryMan | Room Temperature (JOI24_ho_t1) | C++17 | 1 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long
#define line cout << "---------------------------" << endl;
#define M -1
#define debug(x) cout << "x " << x << endl;
#define all(a) a.begin(), a.end()
#define INF (int) 1e9
bool sq(int n){
return n * n;
}
void solve(){
int n,t; cin >> n >> t;
if(t == 1){
cout << 0 << endl;
return;
}
vector<int> v(n);
bool flg = 0;
for(int i = 0; i < n; i++){
cin >> v[i];
v[i] %= 2;
}
cout << *min_element(begin(v),end(v)) << endl;
}
int32_t main(){
int t = 1;
//cin >> t;
while(t--){solve();}
cerr << "Execution time: " << 1000.f * clock() / CLOCKS_PER_SEC << " ms." << endl;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |