printf基础练习2-题解(C语言代码) 摘要:解题思路:先看题目八进制与16进制,其中要有前缀,o是八进制,x是16进制。注意事项:o和x前记得加#,这是前缀。而八进制是后三位为一体,16进制是后四位一体。参考代码:#include <stdio…… 题解列表 2020年12月11日 0 点赞 3 评论 1909 浏览 评分:9.8
蓝桥杯2015年第六届真题-生命之树-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;const int MaxN = 1e5;long long w[Max…… 题解列表 2020年12月11日 0 点赞 0 评论 674 浏览 评分:0.0
蓝桥杯2019年第十届真题-外卖店优先级-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int Max = 10001…… 题解列表 2020年12月11日 0 点赞 0 评论 756 浏览 评分:2.0
蓝桥杯历届试题-国王的烦恼-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <iostream>#include <algorithm>using namespace std;int n,m; …… 题解列表 2020年12月11日 0 点赞 0 评论 1461 浏览 评分:8.2
[编程入门]温度转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std ;int main(){ float f ; c…… 题解列表 2020年12月11日 0 点赞 0 评论 292 浏览 评分:2.0
信息学奥赛一本通TT1262-挖地雷-题解(C语言代码) 摘要:开始用DSF做,自己验证通过,系统提交超时。 改为用DP,因为是正序,路径是反着的,打印时写的麻烦了些。 ```c #include int main() { int n; scan…… 题解列表 2020年12月11日 0 点赞 0 评论 1355 浏览 评分:7.0
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:解题思路:首先水仙花是一个三位数即(100~999) 每一个数字都是它本身的三次方,可以用pow函数进行解答注意事项: 循环语句的范围参考代码:#include#incl…… 题解列表 2020年12月11日 0 点赞 2 评论 393 浏览 评分:7.5
[编程入门]报数问题-题解(C++代码)适用于所有出圈题即n个人报数,报m的淘汰 摘要:###### 解题思路: ###### 1. 建立一个具有头、尾指针的环形链表 ###### 2. 利用尾指针不断插入节点,建立有n个节点的链表 ###### 3. 报m的人出圈 ######…… 题解列表 2020年12月11日 0 点赞 0 评论 921 浏览 评分:2.0
送分题素数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int isprime(int N) { int i; if(N=…… 题解列表 2020年12月11日 0 点赞 0 评论 457 浏览 评分:9.9
蓝桥杯算法提高VIP-素数求和-题解(C语言代码) 摘要:解题思路:注意事项:注意数据过大要用长整型long,%ld;参考代码: #include <stdio.h> #include <math.h> int isprime(int N) { …… 题解列表 2020年12月11日 0 点赞 0 评论 338 浏览 评分:0.0