Submission
Status:
[PPPPPPP]
Score: 100
User: Cmoss9
Problemset: คิดถึงแม่
Language: cpp
Time: 0.002 second
Submitted On: 2025-03-11 22:06:17
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
n = n - 3;
if (n<=0) {
n += 7;
}
n -= 2;
if (n<=0) {
n += 7;
}
n = n - 3;
if (n<=0) {
n += 7;
}
n -= 2;
if (n<=0) {
n += 7;
}
n -= 19%7;
if (n<=0) {
n += 7;
}
cout << n;
}