Submission
Status:
[PPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: blaboo123
Problemset: คิดถึงแม่
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-06 14:11:57
#include <bits/stdc++.h>
using namespace std ;
int main() {
ios_base::sync_with_stdio(0) ;
cin.tie(0) ;
int p = 141 % 7 ;
int d ;
cin >> d ;
switch (d)
{
case 1 :
cout << 7 << "\n" ;
break;
default:
cout << d-p << "\n" ;
break;
}
return 0 ;
}