题解列表

筛选

求车速稍微取巧

摘要:解题思路:假设车速不超过150,两个小时300公里以内(也可以改400 500),将每个数都求出来,然后if判定,如果第一位和第五位相等并且第二位与第四位相等注意事项:数字要是回文数参考代码:#inc……

1097: 蛇行矩阵

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

猴子吃桃的问题

摘要:解题思路:        倒推注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; int Tota……

方法很简单

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

循环判断输出

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; int a,b,c; for(i=100;i<=999;i++) { a=i/100; b=i……

循环判断累加

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,x,x1,sum=0; scanf("%d",&x); for(i=0;i<x;i++) { sc……

简单累加循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j=2,x,sum=0; scanf("%d",&x); for(i=0;i<x;i++) { s……

[编程入门]求和训练(C语言)

摘要:解题思路以及注意事项:1.前面用float定义后面输出就得用%f,double就是%lf参考代码:#include<stdio.h>int main(){    float a,b,c,i;    s……