Submission

Status:
[PPPPPPP]

Score: 100

User: solarsunny

Problemset: คิดถึงแม่

Language: c

Time: 0.001 second

Submitted On: 2024-12-18 15:52:24

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>

int main() {
    int d;
    scanf("%d", &d);
    d = d-1;
    d = d % 7;
    if(d == 0) {
        d = 7;
    }
    printf("%d \n", d);
    return 0;
}