题解列表

筛选

2771: 大象喝水

摘要:解题思路:注意事项:参考代码:import math  h,r = map(int,input().strip().split())  v = math.pi * h * r**2 print(mat……

超简单的C++

摘要:参考代码:#include<iostream> using namespace std; int main() {     long long int sum;     long long ……

N进制的加,C语言

摘要: #include #include #define N 10// 进制数 #define M '9'// 进制数 - 1 void reverse(char* c, int l, i……

1866: 三位数反转

摘要:解题思路:注意事项:参考代码:while True:    try:        a = int(input())        b = a // 100        s = (a - b * 1……

简单易懂,两个函数给出答案

摘要:解题思路:先用compare函数对比出三个字符串的大小,再用compute函数排出次序。注意事项:1. compare函数返回的是一个数组指针,所以必须将其声明为一个指针函数。参考代码:#includ……

1173: 计算球体积

摘要:解题思路:注意事项:参考代码:import mathwhile True:    try:            r = float(input())        pi = math.pi     ……

20221124Minesweeper

摘要:解题思路:创建一个(二维)字符数组与一个(二维)整数数组在字符数组中输入&#39;*&#39;或&#39;.&#39;时进行判断:若&#39;*&#39;,则将其符号数组下标对应相同下标的整数数组元素……

亲密数简化编译C语言,初学者

摘要:解题思路:参考了很多解法,很多复杂度比较高,提交的话时间会超时,思路都大同小异都是利用循环判断要么的话就比较难懂,对初学者不是那么友好下面是我看到的并且认为比较巧妙也比较好懂的一种解法由题目可以很好理……