1221: 数列问题 摘要:```python s=int(input()) def f(n): if n==1: return 3 if n==2: return 4…… 题解列表 2022年01月16日 0 点赞 0 评论 385 浏览 评分:0.0
25行代码C++ sort()函数解决 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace std;int main(){ …… 题解列表 2022年01月16日 0 点赞 1 评论 337 浏览 评分:9.9
二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main10 { public static void main(String[] ar…… 题解列表 2022年01月16日 0 点赞 0 评论 369 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"main(){ char a1[81]; int i,n; gets(a1); n=strlen…… 题解列表 2022年01月16日 0 点赞 0 评论 318 浏览 评分:0.0
1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:while True: try: n = int(input()) if n == 0: &n 题解列表 2022年01月16日 0 点赞 0 评论 326 浏览 评分:0.0
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void tap(string s1,string s2){ cout<<s1…… 题解列表 2022年01月15日 0 点赞 0 评论 1000 浏览 评分:8.4
C语言训练-"水仙花数"问题2 C语言 摘要:解题思路:将三位数分成三个数字,三个for循环遍历,最后一个循环中if判断是否为水仙花数注意事项:百位数的循环从1开始参考代码:#include <stdio.h>int main(){ i…… 题解列表 2022年01月15日 0 点赞 2 评论 985 浏览 评分:9.9
数字统计(加油,可以的!) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]={0}; int n; scanf("%d",&n); for(int i=1;i<=n;i…… 题解列表 2022年01月15日 0 点赞 1 评论 657 浏览 评分:9.9
C++ 实现 思路简单易懂 摘要:### 解题思路 1. 首先要接收数据 2. 区分功能 2.1 equal()函数判断child数组中的数值是否一致 2.2 game()函数就是将几个孩子手里的糖减半然后轮转相加 …… 题解列表 2022年01月15日 0 点赞 0 评论 387 浏览 评分:8.0
1071: 二级C语言-阶乘公式求职 摘要:解题思路:注意事项:参考代码:n = int(input()) def jc(n): s=1 for i in range(1,n+1): s *= i …… 题解列表 2022年01月15日 0 点赞 0 评论 467 浏览 评分:9.9