简单的fot循环语句即可 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(void){ int a,n,i; int Sn; scanf("%d", &n); a = 0; Sn = 0;…… 题解列表 2022年10月25日 0 点赞 0 评论 270 浏览 评分:0.0
2种方法写题解 摘要:解题思路:注意事项:参考代码:a= input()k=0for i in a: if 47<ord(i) and ord(i)<58: #ASCII码判断是不是数字 k+=1pr…… 题解列表 2022年10月25日 0 点赞 0 评论 469 浏览 评分:0.0
自定义函数之数字分离(数组版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char a[81],b[81];int i;char c=' ';void f()…… 题解列表 2022年10月25日 0 点赞 0 评论 216 浏览 评分:0.0
1204: 大小写转换 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char str[85] = {0}; …… 题解列表 2022年10月26日 0 点赞 0 评论 257 浏览 评分:0.0
时间效率题 摘要:解题思路:1、最菜鸟的解题方法:就是遍历使用双层for把两个数遍历出来,然后在里面调用一个函数,函数的用途是判断这两个数是否是亲密数,函数参数是遍历的两个数。然后函数体定义部分是,使用for循环把这两…… 题解列表 2022年10月26日 0 点赞 0 评论 304 浏览 评分:0.0
2855: 简单密码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char a[205] = "\0"; …… 题解列表 2022年10月26日 0 点赞 0 评论 320 浏览 评分:0.0
JAVA解决成绩判定 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2022年10月26日 0 点赞 0 评论 361 浏览 评分:0.0
查找特定的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[10000]={0}; int i=0; int m; scanf("%d",&n);…… 题解列表 2022年10月26日 0 点赞 0 评论 357 浏览 评分:0.0
输出最高分数的学生姓名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct student{ int score; …… 题解列表 2022年10月26日 0 点赞 0 评论 372 浏览 评分:0.0
定义宏,判断是否为闰年 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y…… 题解列表 2022年10月26日 0 点赞 0 评论 299 浏览 评分:0.0