1121: C语言训练-8除不尽的数 摘要:解题思路:把给出的题目描述作为循环中的判断条件注意事项:无参考代码:#include<stdio.h>int n;void fun1(){ n=0; while(1) { …… 题解列表 2022年01月18日 0 点赞 0 评论 231 浏览 评分:0.0
状压dp-矩阵计数(c++) 摘要:```cpp #include #include #include using namespace std; int dp[7][1m; int t=0,flag; fo…… 题解列表 2022年01月18日 0 点赞 0 评论 855 浏览 评分:9.3
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2022年01月18日 0 点赞 0 评论 327 浏览 评分:9.9
python-任意年月日历输出 摘要:解题思路:用python解题的话主要用到了calendar库中的setfirstweekday()函数和month()函数,这里就不和大家详细写了。大家可以去百度一下这个库的用法,有很多博主写的都不错…… 题解列表 2022年01月18日 0 点赞 0 评论 490 浏览 评分:9.9
1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:n = int(input()) ls = list(map(int,input().split())) lis = set(ls) l = [] for i i…… 题解列表 2022年01月18日 0 点赞 0 评论 243 浏览 评分:0.0
1241: 盐水的故事 摘要:解题思路:首先,先求出需要滴多少滴,然后再求出总间隔,加在一起就是总时长因为滴数是1 2 3这样递增的,间隔数就是最后的滴数-1求和公式是n*(n+1)/2,我们已经知道总滴数z,现在逆推求n总时长就…… 题解列表 2022年01月18日 0 点赞 0 评论 307 浏览 评分:9.9
[编程入门]第一个HelloWorld程序1001易错点 摘要:解题思路:新手使用 printf简单输出即可 注意事项: 1、main()前面加int的话注意别忘了返回值return0; 2、语句结束后不…… 题解列表 2022年01月18日 0 点赞 1 评论 259 浏览 评分:8.0
1130: C语言训练-数字母 ->使用ASCII码 摘要:```python s=input() count=0 #计数 for i in s: #使用ASCII码,1~9的十进制ASCII码值为48~57 if ord(i)>…… 题解列表 2022年01月18日 0 点赞 0 评论 392 浏览 评分:9.0
拆分数位题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,x; scanf("%d",&x); for(i=0;i<100;i…… 题解列表 2022年01月18日 0 点赞 11 评论 1322 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:```python l=[] for i in range(1,41): if i%2!=0 and i%5!=0: l.append(i) for j in l: …… 题解列表 2022年01月18日 0 点赞 0 评论 303 浏览 评分:8.0