题解列表
矩阵对角线求(Java)
摘要:解题思路: matrix.length是行。matrix[0].length是列。注意事项:参考代码:import java.util.Scanner;
public class Main {
……
1032: [编程入门]自定义函数之字符串连接
摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v……
自定义函数之字符串反转
摘要:解题思路:for循环,倒叙输出注意事项:参考代码:#include <stdio.h>#include <string.h> int main(){char a[100];int i,j;gets(a……
2812: 球弹跳高度的计算
摘要:解题思路:注意事项:令人忍俊不禁参考代码:height=float(input())sum=-heightsum=float(sum)for i in range(1,11): sum=sum+……
A+B Problem给个好评
摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b; while(cin>>a>>b)cout<<(a+b)<<e……
嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%d\n……
Hello, World!给个好评
摘要:解题思路:注意事项:参考代码:#include<iosteam> using namespace std; int main() ……