无论在官网还是在这儿,都是100分 摘要:解题思路:简单的思维题注意事项:这一题之所以会出现标答超时,是因为有一组数据是第一行什么都没有,第二行才有一个数字(因为我氪金了,能看数据集)。用scanf("%s",str)的方法可以完美解决这种问…… 题解列表 2022年08月19日 0 点赞 0 评论 581 浏览 评分:9.9
编写题解 1119: C语言训练-"水仙花数"问题1 摘要:```c //水仙花数问题1 #include #include void IsDaffodilNum(){ int n, m, sum=0; scanf("%d", &n); …… 题解列表 2022年08月19日 0 点赞 0 评论 482 浏览 评分:9.9
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:C语言训练-"水仙花数"问题1https://blog.dotcpp.com/a/89516 ```c //水仙花数问题2 #include #include void IsDaffod…… 题解列表 2022年08月19日 0 点赞 0 评论 472 浏览 评分:9.9
开心的金明-C语言 摘要:解题思路: 典型0/1背包问题,套用0/1背包问题公式sum[i][j]=max(sum[i-1][j],sum[i-1][j-v[i]]+p[i]*v[i])即可。总钱数N代表背包容量,物品…… 题解列表 2022年08月19日 0 点赞 0 评论 648 浏览 评分:4.7
[编程入门]矩阵对角线求和 摘要:解题思路:利用二维数组,用两层for循环将元素输入,之后再输出。注意事项:无。参考代码:#include<stdio.h>int main(){ int arr[3][3]; for(in…… 题解列表 2022年08月20日 0 点赞 1 评论 496 浏览 评分:9.9
用一个数组存储 摘要:```cpp #include //挺简单的用一个数组各个数字 using namespace std; int q[5]; int main() { int n,cnt=0,num=…… 题解列表 2022年08月20日 0 点赞 0 评论 391 浏览 评分:0.0
2576——————解码 摘要: n = input() #输入字符串 H3el5o2 s = '' #建空字符串 because输入是字符串 for i in range(len(n…… 题解列表 2022年08月20日 0 点赞 0 评论 556 浏览 评分:9.9
1085——————A+B for Input-Output Practice (I) 摘要:题目:1085: A+B for Input-Output Practice (I) **题目描述** Your task is to Calculate a + b. Too easy?! Of…… 题解列表 2022年08月20日 0 点赞 0 评论 520 浏览 评分:0.0
1086——————A+B for Input-Output Practice (II) 摘要:题目:1086: A+B for Input-Output Practice (II) **题目描述** The first line integer means the number of in…… 题解列表 2022年08月20日 0 点赞 0 评论 543 浏览 评分:0.0
1087——————A+B for Input-Output Practice (III) 摘要:题目:1087: A+B for Input-Output Practice (III) **题目描述** Your task is to Calculate a + b. ——翻译(来源百度翻…… 题解列表 2022年08月20日 0 点赞 0 评论 541 浏览 评分:0.0