题解列表

筛选

Manchester- A+B for Input-Output Practice (IV)

摘要:解题思路:输入n如果n不等于0,循环执行:输入n个整数的求和;输出和,并且把和置0;当n等于0,结束;注意事项:每次输出sum之后,要sum=0;参考代码:#include<stdio.h> i……

Manchester- A+B for Input-Output Practice (II)

摘要:解题思路:以要输入的次数n结束;输入一对整数,输出它们的和;注意事项:参考代码:#include<stdio.h> int main() {   int a,b,n;   scanf("%d"……

Manchester- A+B for Input-Output Practice (I)

摘要:解题思路:输入一对整数数,以空格隔开;输出它们的和;默认为测试文件结尾结束;注意事项:题目没有说明结束方式,默认为测试文件结尾结束;参考代码:#include<stdio.h> int main()……

分糖果 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

母牛的故事 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){int a[55],x,y;if(x=1)a[x]=1;if(x=2)a[x]=2;if(x=3)a[x]=3;for(x……