题解列表

筛选

有规律的数列求和

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int a=1,b=2,c,n,i=0;    float sum……

1042 [编程入门]电报加密

摘要:解题思路:注意事项:输入字符串时用Scanner的nextLine()方法,不然会漏掉空格。参考代码:package practise;import java.text.*;import java.u……

编写题解 2626: 面板 编程小白写的(@^_^@)

摘要:解题思路:通过不断循环,进行赋值,并输出,根据每一块三角形的运算公式;可将原题分割为6个三角形,夹角为60度,设三角形两边长为A,B,若求面积,则S=A*B*sin60*1/2最后进行比较注意事项:参……

回文串回文串回文串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[256]; int n,i; int t=0; scanf("……

编写题解 1201: 回文数(一)

摘要:解题思路:数字转换为字符串 倒置和判断回文两个函数 注意事项:参考代码:#include "stdio.h"#include "string.h"#include "stdlib.h"void NIZ……

简单的数学题

摘要:参考代码:public void distance1() {     Scanner sc = new Scanner(System.in);     while (sc.hasNext()) {……