| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1356951 | velvet_haze | 버섯 세기 (IOI20_mushrooms) | C++20 | 0 ms | 348 KiB |
#include <bits/stdc++.h>
#include "mushrooms.h"
using namespace std;
int count_mushrooms(int n)
{
int cnt=1,x;
vector<int> m;
for (int i = 2; i < n; i+=2)
{
m={i-1,0,i};
x=use_machine(m);
if(x==0)
cnt+=2;
else if(x==1)
cnt++;
}
return cnt;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
