Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Namo

Problemset: คิดถึงแม่

Language: cpp

Time: 0.004 second

Submitted On: 2025-06-08 19:55:01

#include <stdio.h>
int a,b;
main() {
	scanf("%d", &a);
	if (a > 1 && a <= 7) {
		b = a - 1;
	}
	else if (a == 1) {
		b = 7;
	}
	printf("%d", b);
}