n的阶乘定义为n!=1*2*3*……*n 如3!=6 n!通常最后会有很多0,如5!=120 最后有一个0,现在统计n!去除末尾的0后,最后k位是多少 摘要:#include<stdio.h>#include<math.h>int main(){ int n,k; scanf("%d%d",&n,&k); long long sum=1;…… 文章列表 2023年10月31日 0 点赞 0 评论 260 浏览 评分:6.0
大家之中的大家好 摘要:#include<iostream> using namespace std; int main() { int a=3; cin>>a; cout<<"大家好,我…… 文章列表 2023年11月30日 0 点赞 0 评论 131 浏览 评分:6.0
求3个数中间值 摘要:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin >>n>>x>>y; y = ce…… 文章列表 2024年01月06日 0 点赞 0 评论 105 浏览 评分:6.0
最多约数问题 但是时间超出限制了 摘要: #include #include int main() { int a,b; scanf("%d%d",&a,&b); …… 文章列表 2024年03月24日 0 点赞 0 评论 373 浏览 评分:6.0
如何做计算器 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char x; cin>>a>>b>>x; i…… 文章列表 2024年05月12日 0 点赞 1 评论 172 浏览 评分:6.0
写c语言不吃纸包鱼你写个??啊 摘要:#include "stdio.h"int main(){ double r,a,m; scanf("%lf",&a); if(a<=100000) r=0.1; else if(a>=100000&…… 文章列表 2024年11月12日 0 点赞 2 评论 302 浏览 评分:6.0
要将"China"译成密码,译码规律是:用原来字母后面的第4个字母代替原来的字母. 例如,字母"A"后面第4个字母是"E"."E"代替"A"。因此,"China"应译为"Glmre"。 请编一程序 摘要:菜鸟刚刚上路,每完成一个发一个:bowtie: #include using namespace std; int main() { char a[100],b[100]…… 文章列表 2019年09月30日 0 点赞 0 评论 7304 浏览 评分:5.9
算术表达式求值(有括号) 摘要:#include <stdio.h> #include <string.h> #include <stdlib.h> #include<windows.h> typedef struct _e…… 文章列表 2019年02月13日 1 点赞 0 评论 1143 浏览 评分:5.7
情人节专属代码,画心 摘要: void draw(string str){ int temp=0; int minus=0; for(double y=1.3 ; y>=-1.1; y …… 文章列表 2020年02月14日 0 点赞 0 评论 1077 浏览 评分:5.4
尼科彻斯定理——Java语言 摘要:## 尼科彻斯定理 对于power运算需要自己写一个方法,因为Math类所提供的pow方法会有误差,这一方法的误差在C语言的pow方法中同样存在!因为本题只设计立方运算,所以在power方法中其实可…… 文章列表 2022年10月21日 0 点赞 0 评论 360 浏览 评分:5.3