頁:
[1]
關於身分證字號驗證問題
本帖最後由 msn965 於 2016-11-13 08:21 PM 編輯#include <stdio.h>
<div></div> 本帖最後由 CoNsTaRwU 於 2016-11-20 05:35 PM 編輯
虛擬碼:
Certify : → Bool
Certify xs = (product `mod` 10) == 0 where
weight = ++++
product = sum [ x*y | (x,y) ← zip xs weight ]
頁:
[1]