C-D函数

Optimized by WPJAM Basic