6666666666阿萨德 摘要:解题思路:注意事项:参考代码:// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#i…… 题解列表 2021年08月11日 0 点赞 0 评论 392 浏览 评分:0.0
链表报数问题 C++,stl-list 摘要:解题思路:有n个人围成一圈,顺序从1开始排号。从第1个人开始报数(从1到3报数),凡报到3的人退出圈子,(之后再从一数到三),问最后留下的是原来第几号的那位。要求用循环链表实现。这里的想法和题目中描述…… 题解列表 2021年08月12日 0 点赞 0 评论 522 浏览 评分:0.0
兄弟们,有没有更简单的来分享分享 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double xulie(int n){ double o=2,m=1,s=0; for(int i=1;i<=n;i++) { s…… 题解列表 2021年08月12日 0 点赞 3 评论 671 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float a; scanf("%f",&a); printf("%.3f",a); return 0;}…… 题解列表 2021年08月12日 0 点赞 0 评论 397 浏览 评分:0.0
题解 1184: 众数问题 摘要:参考代码:#include<stdio.h>#include<string.h>int a[50001]={0};int main(){ int n; scanf("%d",&n); …… 题解列表 2021年08月12日 0 点赞 0 评论 724 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d",b); …… 题解列表 2021年08月12日 0 点赞 0 评论 367 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double a; scanf("%lf",&a); printf("%f\n%.5f\n%e\n%g",a,…… 题解列表 2021年08月12日 0 点赞 0 评论 731 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char c1,c2,c3,c4,c5; scanf("%c%c%c%c%c",&c1,&c2,&c3,&c4…… 题解列表 2021年08月12日 0 点赞 0 评论 455 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(~scanf("%d%d",&a,&b)) printf("%d\n",a+b)…… 题解列表 2021年08月12日 0 点赞 0 评论 649 浏览 评分:0.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y; scanf("%d",&x); if(x>=1) if(x<10) y=2*x-1; …… 题解列表 2021年08月12日 0 点赞 0 评论 649 浏览 评分:0.0