题解列表

筛选

1977: 求中间数

摘要:#include <bits/stdc++.h> using namespace std; int main(){     vector<int> a(3,0);     cin >> a……

2001: 边长判断

摘要:这三个数不一定是排好序的。#include <bits/stdc++.h> using namespace std; int main(){     vector<int> a(3,0); ……

部分借鉴,仅供参考

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerreader=newScanner(System.in);doublea=reader.nextDouble

2006: 寻找奇整数

摘要:#include <bits/stdc++.h> using namespace std; int main(){     int a[] = {3,7,5,13,25,45,78,23,8……

1848: 求输入数据绝对值

摘要:#include <bits/stdc++.h> using namespace std; int main(){     double x;     while(cin>>x){   ……

1866: 三位数反转

摘要:直接用 reverse 函数反转。#include <bits/stdc++.h> using namespace std; int main(){     string s;     w……

[编程入门]报数问题

解题思路:复制一个列表,进行循环,在原列表中去除符合条件的元素注意事项:参考代码:n=int(input())a=list(range(1,n+1))count=0whilelen(a)>1:b=a[:]foriinrange(0,len(b)):count+=1ifcount%3==0:a.remo

回文数(一)

解题思路:注意事项:importjava.util.Scanner;publicclassDemo1201{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);while(scanner.hasNext()){