摘要: #include <stdio.h> int main() { const int maxn = ...; //n的阶乘所得的值的大致位数 int a[maxn];//储存每一位所得到的数 int temp,digit,n,i,j=0;//temp每次的得数 digit每次得数的位数 scanf(" 阅读全文
posted @ 2019-07-06 23:39 DIY-Z 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/f_zyj/article/details/51594851 创建自:https://blog.csdn.net/ZDL_0908/article/details/91357779 阅读全文
posted @ 2019-07-06 19:29 DIY-Z 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 如果 % 两边的操作数都为正数,则结果为正数或零;如果 % 两边的操作数都是负数,则结果为负数或零。C99 以前,并没有规定如果操作数中有一方为负数,模除的结果会是什么。C99 规定,如果 % 左边的操作数是正数,则模除的结果为正数或零;如果 % 左边的操作数是负数,则模除的结果为负数或零。例如: 阅读全文
posted @ 2019-07-06 19:26 DIY-Z 阅读(1670) 评论(0) 推荐(1) 编辑