拆分数位题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,x; scanf("%d",&x); for(i=0;i<100;i…… 题解列表 2022年01月18日 0 点赞 11 评论 1809 浏览 评分:9.9
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 评论 693 浏览 评分:9.0
[编程入门]第一个HelloWorld程序1001易错点 摘要:解题思路:新手使用 printf简单输出即可 注意事项: 1、main()前面加int的话注意别忘了返回值return0; 2、语句结束后不…… 题解列表 2022年01月18日 0 点赞 1 评论 506 浏览 评分:8.0
1241: 盐水的故事 解题思路:首先,先求出需要滴多少滴,然后再求出总间隔,加在一起就是总时长因为滴数是123这样递增的,间隔数就是最后的滴数-1求和公式是n*(n+1)/2,我们已经知道总滴数z,现在逆推求n总时长就是z+n-1参考代码:#includeintmain(){inti;intn, 题解列表 2022年01月18日 0 点赞 0 评论 876 浏览 评分:9.9
1102: 明明的随机数 摘要:解题思路:注意事项:参考代码:n = int(input()) ls = list(map(int,input().split())) lis = set(ls) l = [] for i i…… 题解列表 2022年01月18日 0 点赞 0 评论 530 浏览 评分:0.0
python-任意年月日历输出 解题思路:用python解题的话主要用到了calendar库中的setfirstweekday()函数和month()函数,这里就不和大家详细写了。大家可以去百度一下这个库的用法,有很多博主写的都不错。注意事项:参考代码:importcalendardeff(y, 题解列表 2022年01月18日 0 点赞 0 评论 1039 浏览 评分:9.9
蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2022年01月18日 0 点赞 0 评论 632 浏览 评分:9.9
状压dp-矩阵计数(c++) ```cpp#include#include#includeusingnamespacestd;intdp[7][1m;intt=0,flag;for(inti=0;i 题解列表 2022年01月18日 0 点赞 0 评论 1147 浏览 评分:9.3
1121: C语言训练-8除不尽的数 摘要:解题思路:把给出的题目描述作为循环中的判断条件注意事项:无参考代码:#include<stdio.h>int n;void fun1(){ n=0; while(1) { …… 题解列表 2022年01月18日 0 点赞 0 评论 671 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:【原理】,不使用<string.h>头文件,不使用字符串连接函数,使用指针注意事项:参考代码:#include <stdio.h>#include <stdlib.h>char *MyStr…… 题解列表 2022年01月18日 0 点赞 0 评论 615 浏览 评分:0.0