一种较为代码较为简便的方式 摘要:参考代码: #include<stdio.h>#include<stdlib.h>#define cube(a) (a)*(a)*(a) #宏定义三次…… 题解列表 2023年05月31日 0 点赞 0 评论 339 浏览 评分:9.9
每天2道程序题的纯小白 摘要:解题思路:注意事项:#include<stdio.h> void Fun(char x, int y, int* num); int ju[11][11] = { 0 }; int main()…… 题解列表 2023年05月31日 0 点赞 4 评论 305 浏览 评分:9.9
用了一个函数 使字符串数字转化为整形数字 简单易懂 摘要: #include using namespace std; #include #include int main() { stri…… 题解列表 2023年05月31日 0 点赞 0 评论 429 浏览 评分:0.0
一个map,一个set解决问题,简单易懂 摘要:解题思路:设被怀疑的集合为a,b,c,d,e,已经确定的小球集合为f,那么最终答案为a^b^c^d^e - f。问题是怎样求交集,直接用一个map<int,int>记录某个小球被怀疑的次数,每读一…… 题解列表 2023年05月31日 0 点赞 0 评论 599 浏览 评分:9.9
矩阵对角线求和 摘要:解题思路:用数组来接收注意对角线和副对角线的i,j的位置关系对角线:i==j副对角线:j==2-i&&j>=0注意事项:希望各位大佬指出不足的地方参考代码://求一个3×3矩阵对角线元素之和。//用数…… 题解列表 2023年05月31日 0 点赞 0 评论 381 浏览 评分:0.0
第十二届国赛真题-异或变换 摘要:解题思路:存在一个最小的整数x,使得pow(2,x)>=n,则每隔pow(2,x)就会循环一次。注意事项:参考代码:#include<iostream>#include<cstring>using n…… 题解列表 2023年05月31日 0 点赞 0 评论 520 浏览 评分:10.0
1025 [编程入门]数组插入处理 摘要:步骤: 1.定义数组分配空间 2.按顺序输入数组元素(1 7 8 17 23 24 59 62 101) 3.输入要插入的元素(50) 4..让数组长度+1(a = Array…… 题解列表 2023年05月31日 0 点赞 0 评论 819 浏览 评分:9.9
每天2道程序题的纯小白写的代码(我觉得好详细)(模拟题里思路) 摘要:解题思路:思路就是题里的思路,一直减,然后除17我就是直接模拟题里的要求,尽管会很麻烦,但是我觉得还是挺好的注意事项:参考代码:#include<stdio.h> #include<string.h…… 题解列表 2023年05月31日 0 点赞 2 评论 390 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main() { int i, j, k, start = 0, end, max…… 题解列表 2023年05月31日 0 点赞 0 评论 449 浏览 评分:0.0