题解列表

筛选

单词得分--java极简

摘要:```java import java.util.Scanner; public class 单词得分 { public static void main(String[] args) {……

分段函数求值

摘要:解题思路:选择语句的使用注意事项:if和else if的()括号不能加;参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int x,y……

C语言简单代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int m,h=0; m=x; while(m>0) { h=h*10+m%10; m=m/10; ……

字符串的输入输出处理

摘要:解题思路:注意输出格式注意事项:注意输出格式参考代码:flag = 0n = int(input())while True:        m = input()        flag=flag+1……

简介代码C语言

摘要:解题思路:三目运算符例如: c = a > b ? a : b             就是求a,b中的最大值,并将它赋值给c注意事项:三目运算符定义对于条件表达式b ? x : y,先计算条件b,然……

分段函数求值

摘要://参考代码: #include int main() { int x,y; scanf("%d",&x); if(x<1) { y = x; } else if(1<=x<10)……