注意题干易错点 要求一个无符号数与有符号数进行比较 摘要:解题思路:C会自动进行有符号对无符号的转化,为避免比较大小时负数转化为无符号导致比较结果出错,不妨先对有符号进行正负判断。注意事项:尤其注意题干要求的无符号整数和有符号整数范围,此处有一个易错点,如果…… 题解列表 2023年05月25日 0 点赞 0 评论 838 浏览 评分:9.9
模板题Dijkstra (JAVA) 摘要: ```java import java.util.Scanner; public class Dijkstra最短路 { static final int max = 10000;…… 题解列表 2023年05月25日 0 点赞 0 评论 405 浏览 评分:9.9
小错误小细节要注意,输出格式要再次确认,数值型字符型要区分清楚 摘要:解题思路:注意事项:参考代码:n=int(input())l=list(map(int,input().split()))#忘记转成数值型,不能犯懒##print(l)#测试输出要提出l.sort()…… 题解列表 2023年05月25日 0 点赞 0 评论 308 浏览 评分:9.9
编写题解 1052: [编程入门]链表合并 (使用冒泡排序,简单易懂版本) 摘要:```c #include #include struct LinkNode { int id; int score; struct LinkNode* next; }; …… 题解列表 2023年05月25日 0 点赞 0 评论 515 浏览 评分:9.9
巧用map函数二级C语言-最小绝对值 摘要:解题思路注意事项:参考代码:n=list(map(int,input().split())) n1=list(map(abs,n)) index=n1.index(min(n1)) n[inde…… 题解列表 2023年05月25日 0 点赞 0 评论 602 浏览 评分:9.9
编写题解 2921: 整数奇偶排序 摘要:解题思路:把数输入到数组遍历将原先数组分成奇偶数分别放入集合(因为不知奇偶个数所以要用到集合)将数组转型利用冒泡排序将奇数按从大到小,偶数从小到大注意事项:参考代码:import java.util.…… 题解列表 2023年05月26日 0 点赞 0 评论 377 浏览 评分:9.9
油炸坤坤好吃不贵 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Pi 3.14159int main(){ int r,h; scanf("%d%d", &h, &r); …… 题解列表 2023年05月27日 0 点赞 0 评论 757 浏览 评分:9.9
数组加for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,k=0; int a,b,c[100]; scanf("%d",&n); …… 题解列表 2023年05月27日 0 点赞 0 评论 811 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int x, int y){ return x >= y ? x : y;}int main(){ char str1[…… 题解列表 2023年05月27日 0 点赞 0 评论 342 浏览 评分:9.9
用vector容器写的 摘要:解题思路:原题链接:Hello,world!注意事项:熟悉vector的用法参考代码:#include<iostream>#include<vector>using namespace std;int…… 题解列表 2023年05月27日 0 点赞 0 评论 444 浏览 评分:9.9