제출 #1362868

#제출 시각아이디문제언어결과실행 시간메모리
1362868cowkim버섯 세기 (IOI20_mushrooms)C++20
25 / 100
19 ms400 KiB
#include "mushrooms.h"

int count_mushrooms(int n) {
	int count = 1;
	for(int i = 1; i< n; i+= 2){
		if(i+1 == n) count += 1 - use_machine({i,0});
		else count += 2 - use_machine({i+1,0,i});
	}
	return count;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…