题解列表

筛选

20221124Minesweeper

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

1173: 计算球体积

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

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

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

1866: 三位数反转

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

N进制的加,C语言

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

超简单的C++

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

2771: 大象喝水

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