我看见没人用循环链表 直接一遍就AC了 模拟晾衣服即可 摘要:解题思路:记住是环形的晾衣杆,直接不用思考,选择循环链表,虽然单链表也可以,但是怕出错,直接模拟每次晾衣服就OK注意事项:每次记得清除上一组的数据,防止WA(wrong answer)参考代码:#in…… 题解列表 2022年07月25日 0 点赞 0 评论 477 浏览 评分:9.9
第一个HelloWorld程序(c++代码) 摘要:解题思路:使用iostream头文件(iostream是控制输入输出头文件),使用cout输出语句注意事项:cout输出语句后跟endl换行参考代码:#include <iostream>using …… 题解列表 2022年07月25日 0 点赞 0 评论 598 浏览 评分:9.9
巨大的数 C语言 14行代码 摘要:#include #include int main() { int n, ai, i, a = 1; scanf("%d", &n); for(i = 0; …… 题解列表 2022年07月26日 0 点赞 0 评论 538 浏览 评分:9.9
DNA的生成问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> #include<stdlib.h>int mid1, mid2, flag1 = 0, flag…… 题解列表 2022年07月26日 0 点赞 0 评论 318 浏览 评分:9.9
好理解的c++解法 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int sum=0; for(…… 题解列表 2022年07月26日 0 点赞 0 评论 551 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]={0},b[3][3]={0}; //输入a[][] for(int …… 题解列表 2022年07月26日 0 点赞 1 评论 278 浏览 评分:9.9
简单易懂 数字逆序输出 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int a[10]={0}; for(int i=0;i<10;i++){ scanf("%d…… 题解列表 2022年07月26日 0 点赞 3 评论 293 浏览 评分:9.9
#C++2609——蓝桥杯2021年第十二届省赛真题-时间显示 摘要:解题思路:把毫秒转换成秒数,用时分秒之间的关系进行转换;注意事项:注意不足两位的时间是需要用0填充的,eg:12:00:06 ;参考代码:#include <iostream> #include…… 题解列表 2022年07月26日 0 点赞 0 评论 747 浏览 评分:9.9
数字组合(动态规划) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1001] = {0};int a[20];int main(){ …… 题解列表 2022年07月26日 0 点赞 0 评论 427 浏览 评分:9.9