题解 2820: 含k个3的数 摘要:解题思路:1.ss是为了和d比较;2.只拆解数位,不和并数位注意事项:参考代码:#include <iostream>using namespace std;int main(){ long l…… 题解列表 2024年01月17日 0 点赞 0 评论 98 浏览 评分:0.0
循环每一位的值,用%10求余+/10更新;初始值比较需要另设n保存 摘要:解题思路:1.循环每一位的值,用%10求余+/10更新。2.中间值需要用count储存,加入if判断。3.while会让原始值降至0,因此初始值的比较需要另设n保存。参考代码:#include<ios…… 题解列表 2024年12月06日 0 点赞 0 评论 111 浏览 评分:0.0
2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long int m,n; int s…… 题解列表 2023年12月26日 0 点赞 0 评论 130 浏览 评分:0.0
题解 2820: 含k个3的数 摘要: #include using namespace std; int main(){ int a,b,c,d,i=0; cin>>a>>b; …… 题解列表 2023年11月17日 0 点赞 0 评论 101 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,k,ans=0; cin>>m>>…… 题解列表 2023年07月12日 0 点赞 0 评论 209 浏览 评分:0.0
感谢支持,谢谢大家,含k个3的数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,k,n,b,i,YES=0,NO=0; …… 题解列表 2023年07月12日 0 点赞 0 评论 322 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, k,m,sum=0; scanf("%d %d", &n, &k); m = n…… 题解列表 2023年06月06日 0 点赞 0 评论 134 浏览 评分:0.0
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,k,count=0; scanf("%d %d",&m,&k); //先用第三方变量进…… 题解列表 2023年03月07日 0 点赞 0 评论 165 浏览 评分:0.0
2820: 含k个3的数 摘要:解题思路:注意事项:参考代码:m,k = map(int,input().split()) # 定义计数器 count = 0; n = m # 遍历 for i in range(1,n…… 题解列表 2023年03月01日 0 点赞 0 评论 146 浏览 评分:0.0
感觉不断练习除余数得到单数的方法 摘要:解题思路:if判断条件语句注意事项:else的细心参考代码:#include<stdio.h>int main(){ int n,k; int num=0; scanf("%d %d…… 题解列表 2023年01月19日 0 点赞 0 评论 167 浏览 评分:0.0