题解列表

筛选

石头剪刀布

摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"]a=b=0x=0f=[]N = int(input())for i in range(N): a,b = ……

编写题解 1670: 拆分位数(c++)

摘要:解题思路:利用数组来进行倒序输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; int n; cin >> ……

2017: 猜价模拟

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     long int n;     cin>>n;……

等差数列简单求解

摘要:参考代码:#include<stdio.h>int main(){    int n, i;    scanf("%d", &n);    int arr[n];//定义一个数组名    arr[0]……

简单的数学题

摘要:解题思路:题目可以理解为n天,每天给n块,换算成公式就是x=x+n*n,所以我们可以按公式算出来,然后增加一个判断,是否为1+2+3+4……+n的值,不是就减去。注意事项:参考代码:#include<……

2012: 百分制成绩转换

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int arr[5]={0},arr1[100]……

2009: 第一个带类的C++程序

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; class Data { public:     void Set(string……