| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 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";
}
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
