我觉得是最简单的 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a = 1, b = 2, c; double sum = 0.0; scanf("…… 题解列表 2024年04月21日 0 点赞 0 评论 681 浏览 评分:0.0
输出一个整数序列中与指定数字相同的数的个数。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,count=0,y; scanf("%d\n",&n); int a[n]; …… 题解列表 2024年04月21日 1 点赞 0 评论 866 浏览 评分:7.0
给哥哥大苏打大师傅发射点风格如果 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ //比赛n轮,输入n ,小A的周期长度na,小B的周期长度nb…… 题解列表 2024年04月21日 0 点赞 0 评论 550 浏览 评分:0.0
题解 2879: 错误探测 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int b[100][100]; int c=0; int d=0; …… 题解列表 2024年04月20日 0 点赞 0 评论 649 浏览 评分:9.9
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { for(int i=153;i<10…… 题解列表 2024年04月20日 0 点赞 0 评论 651 浏览 评分:0.0
每一个字符和取模后的下一个字符相加输出 摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()…… 题解列表 2024年04月20日 0 点赞 0 评论 776 浏览 评分:0.0
题解 2877: 同行列对角线的格子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,c; scanf("%d%d%d",&n,&i,&j); for(int …… 题解列表 2024年04月20日 0 点赞 0 评论 591 浏览 评分:0.0
我来解决1048: [编程入门]自定义函数之字符串拷贝 c语言代码 摘要:下面我会介绍"1048: [编程入门]自定义函数之字符串拷贝"的答案。至少要有一个n和m还有一个数组。然后开始输入(代码如下) scanf("%d",&n); scanf("%s",s…… 题解列表 2024年04月20日 0 点赞 0 评论 639 浏览 评分:4.0
三个数字的排序(三目运算符) 摘要:解题思路:三目运算符注意事项:中间值比较绕,多仔细思考,但最大最小值这个三目运算符易懂参考代码:#include<stdio.h>int main(){ int a,b,c; scanf(…… 题解列表 2024年04月20日 0 点赞 0 评论 570 浏览 评分:9.9
输入绝对值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float f; scanf("%f",&f); printf("%.2f",f > 0 ? (f) : (-…… 题解列表 2024年04月20日 0 点赞 0 评论 586 浏览 评分:0.0