最小函数值(minval) 不用优先队列玄学做法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年02月26日 0 点赞 0 评论 129 浏览 评分:0.0
用C++求位数 摘要:解题思路:首先需要定义数字类型,由题目可知是整数型(int),然后观察题目可得并没有给出具体数字,那么就是说这个是对所有 三位数成立,我们需要手动输入数字,代码中我们用a表示;通过数学计算可拆分位数。…… 题解列表 2025年02月26日 1 点赞 0 评论 314 浏览 评分:0.0
题解 2006: 寻找奇整数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int b,k=0,i,a[15]={3,7,5,13,25,45,78,23,8,33,9,19…… 题解列表 2025年02月26日 0 点赞 0 评论 68 浏览 评分:0.0
题解 1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[3][3]={0},i,j; &nb…… 题解列表 2025年02月26日 0 点赞 0 评论 476 浏览 评分:0.0
题解 1093: 字符逆序 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ int i; char …… 题解列表 2025年02月27日 0 点赞 0 评论 236 浏览 评分:0.0
写题解 1097: 蛇行矩阵 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define max 100int main(){ int num[max][max]; int n,i=1; scanf…… 题解列表 2025年02月27日 0 点赞 0 评论 231 浏览 评分:0.0
编写题解 1115: DNA 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[15], b[15], num[780][39]; while (scanf(&qu…… 题解列表 2025年02月27日 0 点赞 0 评论 221 浏览 评分:0.0
2976: 字符串中最长的连续出现的字符(c语言) 摘要:#include<stdio.h>#include<string.h>#include<math.h>int&n…… 题解列表 2025年02月27日 0 点赞 0 评论 135 浏览 评分:0.0
字符串的提取 摘要:解题思路:注意事项:可以使用+运算符或join方法来实现类似将一个字符串追加到另一个字符串的效果参考代码:s=input()r=[]v='aeiouAEIOU'for i in s: …… 题解列表 2025年02月27日 0 点赞 0 评论 292 浏览 评分:0.0
满分题解Python 摘要:解题思路:注意事项:参考代码:import randomimport mathdef is_prime(n): if n <= 1: &nbs…… 题解列表 2025年02月27日 0 点赞 0 评论 102 浏览 评分:0.0