2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 2000: 偶数列举 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; for(int i=2;i<…… 题解列表 2024年01月09日 1 点赞 2 评论 362 浏览 评分:10.0
全字符串输入 通用转换 求解 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年01月09日 1 点赞 0 评论 471 浏览 评分:10.0
2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin>>n>>m; l…… 题解列表 2024年01月13日 1 点赞 0 评论 650 浏览 评分:10.0
题解 3011: 余数相同问题 摘要:解题思路:定义三个长整型变量,写循环和选择判断x;注意事项:在循环中输出完x后要终止循环,不然会超时;参考代码:#include <bits/stdc++.h>using namespace std;…… 题解列表 2024年01月14日 1 点赞 0 评论 331 浏览 评分:10.0
函数重载之比较大小 摘要:解题思路:思路比较简单,写三个重载的函数就行了。注意事项:参考代码:import java.util.*; public class Main { public static voi…… 题解列表 2024年01月15日 0 点赞 0 评论 811 浏览 评分:10.0
题解 2824: 求出e的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,e=1,num=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 400 浏览 评分:10.0
2757:浮点数向零舍入 摘要:注意事项:参考代码:#include<stdio.h>int main(){ float a = 0; scanf("%f",&a); int b = 0; b = a; …… 题解列表 2024年01月19日 2 点赞 0 评论 636 浏览 评分:10.0
Python代码(简洁) 摘要:s = input().strip() result = '' #注意超出字母表之后就会重新回到A或a for char in s: if char.isupper(): …… 题解列表 2024年01月20日 0 点赞 0 评论 401 浏览 评分:10.0
编写题解 1670: 拆分位数 摘要:解题思路: 先定义一个整数n,并输入他的值,然后再分别拆分出百位、十位和个位(例:365/100=3……65 即百位为3;65/10=6……5 即十位为6;5/1=5 即个位为5),最后按照题目要…… 题解列表 2024年01月22日 3 点赞 0 评论 750 浏览 评分:10.0
使用一维数组来存储以每个数字结尾的可以允许的最长接龙数列的长度,细节写到代码注释了 摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in); int n = sc.nextInt(); &nb 题解列表 2024年01月23日 2 点赞 0 评论 1413 浏览 评分:10.0