题解列表

筛选

2778: 判断数正负

摘要:```c #include int main() { int n; scanf("%d",&n); if(n>0) printf("positive");……

使用for循环计算2的幂

摘要:因为懒得导入math.h库,就使用for循环写 ```c #include int main() { int n,s=1,i; scanf("%d",&n); f……

想看奥本海默

摘要:#include<iostream>#include<cmath>using namespace std;int main(void){    float x,x1=1.00;    float a;……

1199: 哥德巴赫曾猜测

摘要:解题思路:#include <bits/stdc++.h>using namespace std;int add(int n){    for(int i=2;i<n;i++)        if(n……

1045 暴力解

摘要:#include<iostream>using namespace std;int s[10];int a,b;int da=0,xiao=10050;int main(void){    for(i……

计算三角形面积

摘要:![](/image_editor_upload/20230722/20230722061633_68262.png) ```c #include #include int main() {……

鸡兔同笼问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d %d",2*……