| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1354404 | sally | Candy (EGOI23_candy) | C++20 | 1 ms | 344 KiB |
#include<iostream>
#include<vector>
using namespace std;
#define int long long
int N, F, T;
vector<int> num(102);
signed main() {
cin>>N>>F>>T;
for(int i=1; i<=N; i++) cin>>num[i];
if(F==2) {
if(num[1] + num[2]>=T) cout<<0;
else cout<<"NO";
}
else {
if(num[1]>=T) cout<<0;
else if(num[2]>=T) cout<<1;
else cout<<"NO";
}
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
