Submission

Status:

[PPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Neozaawwman1

Problemset: คิดถึงแม่

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-08 09:15:54

#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;cin>>n;
	int sum=-1*(141%7-n)%7;
	if(sum==0){
		cout<<'7';
	}else{
		cout<<sum;
	}
	return 0;
}