题解列表
C语言考试练习题_保留字母
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<string.h>
int main(){
int m,n,i,j;
char a[80];
get……
题解 1388: GC的苦恼
摘要:解题思路:也是使用字符数组来实现的,这里还用到了pow函数和strlen函数注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>i……
题解 1118: Tom数
摘要:解题思路:使用 int的话只能对一半,使用数组来存取数才可以存下去很大的数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ ch……
题解 1116: IP判断
摘要:解题思路:巧用scanf函数的返回值来实现循环注意事项:取反是当返回值为-1的时候取反为1,循环结束参考代码:#include<stdio.h>int main(){ int a,b,c,d,k; c……
二级C语言-分段函数-题解(python)
摘要:解题思路:注意事项:参考代码:x = int(input())if x<1: y = xelif 1<=x<10: y = 2*x-1else: y = 3*x-11print("{……
水仙花数判断-题解(python代码)
摘要:参考代码:for i in range(100,1000):
#遍历所有三位数
&nb
Java实现(简单易懂,逆推公式)
摘要:package com.edu.hhxy;import java.util.Scanner;/** * @author five-five * @link https://www.dotcpp.com……