题解列表
[编程入门]电报加密
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[1001]; ge……
二级C语言-分段函数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){ if(x<1) { return x; } else if(x>=1 && x<10) {……
二级C语言-统计字符
摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h>int main(){ int i,b=0,c=0,d=0,e=0; char a[1001]; ……
放苹果 (Java代码)
摘要:import java.util.Scanner;
public class Main {
static int nums;
public static void main(String[……
[STL训练]周瑜的反间计
摘要:解题思路:可以使用一个数组来记录数字出现的次数,然后遍历,每遇到一个数字就将相应的计数器加1。最后统计数组中值是否为1,为1则输出“YES”,反之则输出“NO”。
参考代码:
```cpp
……
重点来了 1090: A+B for Input-Output Practice (VI)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum,a; while(scanf("%d",&n)!=EOF){//此处坚决不可以少 ,一定写全……