题解列表
1022: [编程入门]筛选N以内的素数
摘要:```
#include
using namespace std;
int main() {
int x;
cin>>x;
for(int j=2;j……
题解 2812: 球弹跳高度的计算
摘要: #include
using namespace std;
int main(){
double a,b;
cin>>a;
b=a;
……
题解 1006: [编程入门]三个数找最大值
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,b,c; cin>>a>>b……
[编程入门]三个数最大值 (c++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using std::cout;int main(){ int a,b,c; std::cin>>a>>b>>c; ……
函数求解最大公约数与最小公倍数
摘要:### 使用*函数求解*---最大公约数与最小公倍数
------------
- **1. 写入两个函数,最大公约数函数和最小公倍数函数,然后用主函数调用这两个函数**
- **2……
C语言训练-字符串正反连接(用指针)
摘要:```c
#include
int main()
{
char a[102];
scanf("%s",a);
printf("%s",a);
char *p=a;
while……
奥运奖牌计数(不用二维数组)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int gold=0; int silve……