C语言训练-求1+2!+3!+...+N!的和(水题) ```c#includelonglongf(intn){if(n==1)return1;elsereturnf(n-1)*n;}intmain(){intn,i;longlongsum=0;scanf("%d",&n);for(i=1;i 题解列表 2023年01月23日 0 点赞 0 评论 510 浏览 评分:0.0
回文串-字符串处理(C++) 摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256; //判断字符串str是否是“回文串”bool judge(char str[…… 题解列表 2023年01月23日 0 点赞 0 评论 496 浏览 评分:0.0
编写题解 1231: 杨辉三角 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() { int n, i, j; int a[30][30]; while (scanf("%…… 题解列表 2023年01月23日 0 点赞 0 评论 505 浏览 评分:0.0
弟弟的作业(python代码) 摘要:import sys def jud(x): m = 0 for i in x: if i == '-' or i == & 题解列表 2023年01月23日 0 点赞 0 评论 476 浏览 评分:0.0
Tom数(水题) 摘要:```c #include int main(){ long long n,sum,i; while(scanf("%lld",&n)!=EOF){ sum=0; …… 题解列表 2023年01月24日 0 点赞 0 评论 459 浏览 评分:0.0
自定义函数处理素数 摘要:解题思路:傻瓜解法,遍历2到n注意事项:参考代码:def sushu(n): for i in range(2,n) : if n%i==0: print('not pr…… 题解列表 2023年01月24日 0 点赞 0 评论 515 浏览 评分:0.0
内码对称问题 摘要:解题思路:注意事项:参考代码:sum1 = 0try: while True: x=int(input()) y=format(x,'b') …… 题解列表 2023年01月24日 0 点赞 0 评论 568 浏览 评分:0.0
switch语句解决成绩评定 摘要:解题思路: 题目首先提出输入不同的分数输出对应的等级,那么一定会用到选择语句(if/else if也可),那么我们就要分析switch中的语法特性,switch后跟常量,在case中找到与swi…… 题解列表 2023年01月24日 0 点赞 0 评论 822 浏览 评分:0.0
Minesweeper -题解(Python,暴力搜索) ##前言由于笔者能力问题,所以本题没有采用DFS(~~当然不是因为懒~~)下面是代码##输入因为python语言的问题,所以每行输入可以当做一个字符数组,分别储存在列表里面。然后再分别一行一行地进行判断,转化为输出结果```pythona,b=map(int, 题解列表 2023年01月24日 0 点赞 0 评论 532 浏览 评分:0.0
淘淘的名单(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ int n=0; string a[1…… 题解列表 2023年01月24日 0 点赞 0 评论 481 浏览 评分:0.0