题解列表

筛选

[竞赛入门]简单的a+b(C++)

摘要:解题思路:定义a,b,输入各值,输出a+b就可以了注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    ……

2981: 二进制分类

摘要:```cpp #include using namespace std; int A,B; bool turn(int x) { int a=0,b=0; while(x!=0) ……

题解 2807:计算金额(for)

摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().strip().split())for i in range(c):    b *= (1+a/100)print(int(b……

题解 2808: 买房子

摘要:解题思路:注意事项:参考代码:# 输入年薪N和房价增长率K  n, k = map(int, input().strip().split())    # 初始化变量  a = n  # 程序员积攒的总……

球弹跳高度的计算

摘要:解题思路:注意事项:参考代码:h = float(input())s = hfor i in range(9):    h = h/2    s += h*2print(f"{s:g}")print(……

C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:n = int(input())while n != 1:    if n%2 == 0:        print(f"{int(n)}/2={int(n/2)}") ……