Submission #9476

#TimeUsernameProblemLanguageResultExecution timeMemory
9476jwvg0425Wiring (kriii2_W)C++98
4 / 4
0 ms1088 KiB
#include<stdio.h>

int main(void)
{
	long long int N;

	scanf("%lld", &N);

	if (N % 2 == 0)
	{
		printf("%lld", N - 1);
	}
	else
	{
		printf("%lld", (N - 3) / 2 + 1);
	}
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...