分支结构-判断能否被3、5、7整除 摘要:#include #include int main() { int n; scanf("%d",&n); if(n%3==0&&n%5==0&&n%7==0) …… 题解列表 2024年01月22日 0 点赞 1 评论 534 浏览 评分:6.0
动态规划java实现。实际上找的是每一位上所能允许的最长长度,要不断的和前面的作比较 摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; …… 题解列表 2024年01月22日 0 点赞 0 评论 286 浏览 评分:6.0
2925: 单词排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; struct u { char str[50]; st…… 题解列表 2024年01月23日 0 点赞 1 评论 267 浏览 评分:6.0
题解 1050: [编程入门]结构体之成绩记录 摘要:##**思路** 简单的字符串与整数输入输出,读入一个输出一个即可。 ##**代码** ```cpp #include using namespace std; char a[10005]…… 题解列表 2024年01月30日 0 点赞 0 评论 258 浏览 评分:6.0
1056: 二级C语言-温度转换 摘要:按公式来就行 **注意事项:要乘1.0!!!** ##**代码** ```cpp #include #include using namespace std; int main() {…… 题解列表 2024年01月30日 1 点赞 0 评论 384 浏览 评分:6.0
合并石子题解 摘要:解题思路:注意事项:参考代码:import java.io.*;import java.util.*;public class Main{ static int maxn = 200005,n,…… 题解列表 2024年01月30日 1 点赞 0 评论 533 浏览 评分:6.0
编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码: public static void main(String args[]) { Scanner sc=new Scanner (System.in); i…… 题解列表 2024年01月31日 0 点赞 0 评论 327 浏览 评分:6.0
C++来解一下 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<queue> #include<vector> using na…… 题解列表 2024年02月02日 0 点赞 0 评论 368 浏览 评分:6.0
判断是否为两位数 摘要:解题思路:将输入的整数存在列表中 判断列表长度 就可以得出是否为两位数注意事项:参考代码:while True: try: num = input() num_lis…… 题解列表 2024年02月03日 0 点赞 0 评论 456 浏览 评分:6.0
python版代码!!!! 摘要:解题思路:注意事项:参考代码:def f(x): if 0 <= x < 5: result = -x + 2.5 elif 5 <= x < 10: resu…… 题解列表 2024年02月03日 0 点赞 0 评论 444 浏览 评分:6.0