Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cd8bd6c

Browse files
Fixing example result
1 parent a91a2c8 commit cd8bd6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Problem Solving Scripts/CPF_Checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
0*2 = 0
3737
3838
TOTAL: 10 +たす 9 +たす 24 +たす 21 +たす 6 +たす 20 +たす 12 +たす 27 +たす 0 +たす 0 = 129
39-
GET THE REST FROM RESULT => 129 % 11 = 10
39+
GET THE REST FROM RESULT => 11 - (129 % 11) = 3
4040
4141
IF RESULT > 9, DIGIT IS 0, ELSE DIGIT IS RESULT.
4242
@@ -117,6 +117,7 @@ def validateCPF(userCPF):
117117
for key, multiply in enumerate(range(len(firstNineDigits) + 1, 1, -1)):
118118
# logThis(f"{userCPFList[key]} * {multiply}")
119119
sumMaster += int(userCPFList[key]) * multiply
120+
# logThis(sumMaster)
120121
restSum = 11 - (sumMaster % 11)
121122

122123
# Second Last Digit

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /