题解列表
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<……
全字符串输入 通用转换 求解
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
2801: 奇数求和
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; cin>>n>>m; l……
题解 2824: 求出e的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,e=1,num=0; cin……
Python代码(简洁)
摘要:s = input().strip()
result = ''
#注意超出字母表之后就会重新回到A或a
for char in s:
if char.isupper():
……
通过创建二维列表,坐标定位,精准输出
摘要:**解题思路:**利用python二维列表,找到对应位置规律,每个坐标依次加一,通过两层for循环来确定坐标。
**举例:**若输入N=5,那么坐标规律就是:第一次:(0,0)第二次:(1,0)(0……
使用一维数组来存储以每个数字结尾的可以允许的最长接龙数列的长度,细节写到代码注释了
摘要:解题思路:注意事项:参考代码: Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
&nb