题解列表

筛选

直接清晰版 有手就行

摘要:解题思路:注意事项:参考代码:    #include<iostream> using namespace std; bool flag=false; int sum,n; int s[102……

没什么用的完数判断

摘要:import java.util.ArrayList;import java.util.Collections;import java.util.Scanner;public class Main{ ……

不同单词个数统计(c++, map)

摘要:解题思路:注意事项:注意:当遍历到字符串的最后,即&#39;\0&#39;结束符时,需要把最后的单词统计下来参考代码:#include <bits/stdc++.h> using namespace……

求解输入的几位偶数和

摘要:解题思路:先来确定要输入几个数,再依次为每一个数赋值,最后判断是否为偶数,是偶数就相加。注意事项:数组是从a[0]开始,所以赋值时要先为i赋值为0参考代码:#include<stdio.h>int m……

C++版本——常规思路

摘要:```cpp #include using namespace std; char* timez[] = {"zero","one","two","three","four","five",……

修改数组题解

摘要:解题思路:暴力模拟到并查集注意事项:参考代码:暴力模拟 没有ACN = int(input()) ##inputList = [int(temp) for temp in input().strip……