Tom数(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long long n; while(~scanf("%lld",&n)) …… 题解列表 2021年10月31日 0 点赞 0 评论 329 浏览 评分:6.0
编写题解 1246: 第几天 不考虑润年答案也对? 摘要:解题思路:正常的累加注意事项:参考代码:#include<stdio.h> int main() {int a,b,c,sum,d; char i,j; while(scanf("%d%c%d…… 题解列表 2021年10月31日 0 点赞 1 评论 660 浏览 评分:9.9
algorithm库是真好用 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(…… 题解列表 2021年10月31日 0 点赞 0 评论 303 浏览 评分:0.0
编写题解 1231: 杨辉三角 摘要:解题思路:通过迭代进行循环注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,d,f[100][100]; while(scanf("%d",…… 题解列表 2021年10月31日 0 点赞 0 评论 764 浏览 评分:8.0
简单却易错的hello world! 摘要:解题思路:此题只有输出,使用printf函数注意事项:观察体型有三行,要使用三个printf函数 且每一个函数都要用到转行符 \n 并且*的个数不用一个一个数,要从题目上复制到代码中,不然是易错题参考…… 题解列表 2021年10月31日 0 点赞 0 评论 514 浏览 评分:7.3
优质题解 1110: 2^k进制数,动态规划dp解决! 摘要:##解题思路: 利用动态规划的思想: 二维矩阵的dp[i][j]值的含义是:当一共有(i+1)位数字且最高位数字位数字是j的时候满足条件的数字总个数是多少。 ###初始条件: dp[0][]=…… 题解列表 2021年10月31日 0 点赞 0 评论 1854 浏览 评分:9.3
个人一些比较笨的解法 摘要:#include <stdio.h> int main() { int m,n,k,sum=0,j,z; while(scanf("%d%d",&n,&m)!=EOF) { …… 题解列表 2021年10月31日 0 点赞 0 评论 174 浏览 评分:0.0
适合新手理解的c++ 摘要:#include<iostream>using namespace std;int main(){ int i,j,arr[10]; int start=0; int end=sizeof(arr)…… 题解列表 2021年10月31日 0 点赞 0 评论 464 浏览 评分:0.0
[编程入门]Sn的公式求和de简单理解c语言解法 摘要:解题思路:通过对a的迭代可以减少一次循环的利用注意事项:记得引用数学函数参考代码:#include<stdio.h>#include<math.h>int main(){ int n,…… 题解列表 2021年10月31日 0 点赞 0 评论 415 浏览 评分:0.0
不用数组不用其他函数的简单蛇形矩阵解法! 摘要:解题思路:比较难懂的应该是第一个循环里a=b的意义所以第一步对于num的输出num=a*(a+1)/2-(b-1)可以先省去后面的b-1M11 3 6 10 153 6 10 156 10 1510 …… 题解列表 2021年10月31日 0 点赞 0 评论 376 浏览 评分:0.0