C++ 究极三目运算符 摘要:解题思路:注意事项:参考代码:#include<cstring>#include<stdio.h>int main(){ int n,t,k,j,i=1;char c[124][124]; …… 题解列表 2022年04月07日 0 点赞 0 评论 544 浏览 评分:0.0
时间显示题目 摘要:解题思路:注意事项:参考代码:n=int(input()) m=(n//3600000)//24 n1=n//1000-m*3600*24 h=n1//3600 m=(n1-h*3600)//…… 题解列表 2022年04月07日 0 点赞 0 评论 492 浏览 评分:9.9
时间转换【C++】 摘要:```cpp #include using namespace std; int main(){ int t; cin >> t; int shi = t / 3600; …… 题解列表 2022年04月07日 0 点赞 0 评论 457 浏览 评分:0.0
C语言训练-最大数问题 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int a[1000], max,i=0; scanf("%d", &a[0]); max = a…… 题解列表 2022年04月07日 0 点赞 0 评论 365 浏览 评分:0.0
转换字符【c++】 摘要:```cpp #include using namespace std; int main(){ string s1, s2, s3 = "", s4 =""; cin >> …… 题解列表 2022年04月07日 0 点赞 0 评论 393 浏览 评分:0.0
图的遍历——BFS广度优先搜索 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int mapsize=55; int Map[mapsize…… 题解列表 2022年04月07日 0 点赞 0 评论 563 浏览 评分:0.0
浅水一波【c++】 摘要:```cpp #include using namespace std; int main(){ double a, b, x; cin >> a >> b; x = -b…… 题解列表 2022年04月07日 0 点赞 0 评论 433 浏览 评分:0.0
C语言训练-尼科彻斯定理(python版) 摘要:解题思路:注意事项:参考代码:sum = 0n = int(input())s = []h = n**3if n%2 !=0 :#判断n奇偶性 for i in range(n**2-n//2*…… 题解列表 2022年04月07日 0 点赞 0 评论 527 浏览 评分:0.0
[Sapphire]1511:链表复数求和(C语言代码) 摘要:简单链表求和2022/4/7Sapphire解题思路:链表废才学链表的第一题,哈哈哈光看代码就可以了,我会有相应的解释注意事项:1.我有一问,这里如果不要typedef,那么在申请结点空间的时候应该用…… 题解列表 2022年04月07日 0 点赞 0 评论 495 浏览 评分:0.0
动态规划(闫氏DP)合并石子 摘要:**思路:**石子合并到最后一定是左边一堆和右边一堆进行合并,所以当最后两堆石子花费都为最小时,合并成为的新一堆石子的花费也是最小的 所以状态转移方程: **dp[i][j]=min(dp[i][…… 题解列表 2022年04月07日 0 点赞 1 评论 1035 浏览 评分:9.0