如此简单竟然有脸为中等题 摘要:#include<stdio.h> int main(void) { int i, n, foot, sum = 0, count = 0; while(scanf("%d %…… 题解列表 2024年12月31日 0 点赞 0 评论 246 浏览 评分:0.0
约瑟夫环比出圈更高大上啊(但是太简单了) 摘要:解题思路:标记淘汰,首尾相连,很简单注意事项:参考代码:#include<stdio.h> int main(void) { int n, m,i; while(scanf("…… 题解列表 2024年12月31日 0 点赞 0 评论 187 浏览 评分:0.0
直接解决,少写一点点 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main ( ){ printf("%d %d",sizeof(float), sizeof(double) ) ;}…… 题解列表 2024年12月31日 0 点赞 0 评论 335 浏览 评分:0.0
字符排列问题 摘要:注意:这里要用到 next_permutation 函数,这个函数用来求全排列 用法:next_permutation(s.begin(),s.end()) ```cpp #include #…… 题解列表 2025年01月01日 0 点赞 0 评论 197 浏览 评分:0.0
C语言 使用while循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n=0 ,x=0 ;&nbs…… 题解列表 2025年01月02日 0 点赞 0 评论 255 浏览 评分:0.0
C语言:勉强可以说是二维数组解决问题了 摘要:解题思路:听说这题目可以用数组解决,所以我就寻思着用二维数组玩一下二维数组有两个维度,刚好这里两个坐标,一个坐标一个维度二维数组a[2][2] ; a[0]表示第一个坐标【a[…… 题解列表 2025年01月02日 0 点赞 0 评论 333 浏览 评分:0.0
C语言 逻辑判断方法 学习模仿2789题解里一个有点意思的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main ( ){ float a ;&nbs…… 题解列表 2025年01月03日 0 点赞 0 评论 246 浏览 评分:0.0
C语言 一维数组+简单函数解决问题 or 数组+指针解决问题 摘要:解题思路:注意事项:参考代码://方法一:一维数组+函数解决问题#include<stdio.h>#define n 3int compare( int a, int b ){…… 题解列表 2025年01月03日 0 点赞 0 评论 474 浏览 评分:0.0
高精度 阶乘和 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;inta[1500],b…… 题解列表 2025年01月03日 0 点赞 0 评论 233 浏览 评分:0.0
C语言:一维数组+逻辑判断+exit()语句 摘要:解题思路: 其实这题完全可以不用数组,直接一个变量就能解决【对这个变量反复输入,每次输入都会覆盖前面的值】,但是吧,用数组听上去比较高级的样子。至于说我为什么想要使用exit() ,因为break;&…… 题解列表 2025年01月03日 1 点赞 0 评论 143 浏览 评分:0.0