题解列表

筛选

字符替换C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char beitihuan,tihuanzhe; char a[31]; ……

1252: 统计立方数

摘要:```cpp #include using namespace std; bool check(int n) { for(int i=1;i*i*i>n&&n) i……

编写题解 2858: 整理药名

摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){    int l,n;    cin>>n;    f……

题解 2811: 救援

摘要:解题思路:注意事项:参考代码:import math   # 调用数学模块 t = 0 n = int(input())    #屋顶数 for i in range(n):     a = ……

大整数乘法(模拟人的计算)

摘要:解题思路:模拟人平时的计算。注意事项:例如:789*123,那么结果最多为3+3=6,即6位。否则最后无进位,结果为5位。参考代码:#include#includeint main(){     ch……

计算三角形面积,海伦公式

摘要:解题思路:海伦公式sprt(p(p-a)(p-b)(p-c)),p为三角形的半周长注意事项:涉及距离计算,最好用双精度变量进行存储参考代码:#include <stdio.h>#include <ma……