题目描述
Given a number as string(n) , find the remainder of the number when it is divided by 7
Example 1:
Input:
5
Output:
5
Example 2:
Input:
8
Output:
1
Your Task:
You only need to complete the function remainderwith7() that takes string n as parameter and returns an integer which denotes the remainder of the number when its divided by 7
Constraints:
1<=length of n <=105
输入格式
见题面
输出格式
见题面
样例输入
5
样例输出
5