C语言训练-求PI* 摘要:i=n=pi=1 while 1: if (1/(i+2))<0.000001: break if n%2==0: pi+=1/(i+2) …… 题解列表 2022年02月08日 0 点赞 0 评论 395 浏览 评分:7.3
三个整数的最大值(一看就懂系列) 摘要:解题思路:直接用条件运算符也可以,三行代码就实现这个功能注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c; scanf("%d%d%…… 题解列表 2022年02月08日 0 点赞 0 评论 613 浏览 评分:7.3
python-矩阵计数 摘要:解题思路:参考连接https://blog.csdn.net/shamansi99/article/details/116561214这篇博客中写的很详细,大家可以去看看。注意事项:参考代码:n,m …… 题解列表 2022年02月09日 0 点赞 0 评论 460 浏览 评分:7.3
1118: Tom数(C语言版) 摘要:```c #include #include void main() { char str[10]={ '0' }; while (scanf("%s", str) != …… 题解列表 2022年02月09日 0 点赞 4 评论 676 浏览 评分:7.3
九九乘法表 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; int i,j; for(i=1;i<=9;i++) { …… 题解列表 2022年02月09日 0 点赞 0 评论 840 浏览 评分:7.3
1468: 蓝桥杯基础练习VIP-报时助手 摘要:解题思路: 定义数组存放单词需要时调用输出,详情见代码 具体代码: ```c #include void main() { int h, m; scanf("%d%d…… 题解列表 2022年02月09日 0 点赞 0 评论 555 浏览 评分:7.3
python-数字三角形 摘要:解题思路:参考博客https://www.jianshu.com/p/99e379de3368动态规划。建立一个大小为(n+1)*(n+1)二维数组dp,其中dp[i][j]为从顶点走到到第i行第j列…… 题解列表 2022年02月09日 0 点赞 2 评论 658 浏览 评分:7.3
信息学奥赛一本通T1173-阶乘和 摘要:from math import factorial as f n=int(input()) s=0 for i in range(1,n+1): s+=f(i) print(s)p…… 题解列表 2022年02月10日 0 点赞 0 评论 552 浏览 评分:7.3
不同单词个数统计(熟悉一下set函数的用法) 摘要:```cpp #include #include #include using namespace std; string str; int sum=0; int main() { …… 题解列表 2022年02月11日 0 点赞 0 评论 483 浏览 评分:7.3
[编程入门]自定义函数之字符串连接,简单粗暴,通俗易懂。看一眼就懂 摘要:解题思路:前段时间看到大家对这题有争议,这次我来一无脑解法注意事项:注意把多于的0跳过参考代码:#include<stdio.h>#include<string.h>int main(){ cha…… 题解列表 2022年02月13日 0 点赞 0 评论 603 浏览 评分:7.3