题解列表
1000题: 循环计算a+b
摘要:自己写代码的难点:
局限于用for循环,循环加载输入数字后,无法做到循环输出对应的结果;
自己代码:
#include
int main()
{
int a,b;
f……
1001题: 第一个HelloWorld程序
摘要:自己写的代码:
#include
int main()
{
printf("**************************\n");
printf("Hello Wor……
1002题: 求出三个输入数中的最大值,并返回该值
摘要:# 自己写的代码:
```c
#include
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a>b){……
1003题: 密码破译
摘要:# 自己写的代码:
```c
#include
#include
int main()
{
char a[5]; //刚开始写的时候没有定义括号里的数字
for(int……
1004题: 母牛生子的故事
摘要:# 自己写的代码
```c
#include
int main()
{
int n;
int sum=0;
while(~scanf("%d\n",&n)){
……
刷題記錄,新手勿怪-带注解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct transcript{ char student_num[20]; char name[20]; int grade[3]……
编写题解 2824: 求出e的值
摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanne……
2760: 整型与布尔型的转换
摘要:解题思路:强制转换就行了注意事项:bool类型在c语言里面没有,要用到头文件#include<stdbool.h>,不过强制转换可以不需要。参考代码:#include<stdio.h>#include……
编写题解 3010: 奇偶数之和
摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n; int sum=0,a=0; if(scanf("%d",&n)==EOF){……