2806: 人口增长问题 摘要:解题思路:注意事项:参考代码:x,n = map(int,input().split())for i in range(0,n): x += x * 0.001 print('{:…… 题解列表 2023年02月07日 0 点赞 0 评论 617 浏览 评分:0.0
python身份证排序解法 n=int(input().strip())X=[input().strip()for_inrange(n)]#用split函数的话会放在列表里面,这样排不了序strip函数拆分字符串返回#print(X)X=sorted(X,key=lambdaX:(X[6:14], 题解列表 2023年02月07日 0 点赞 0 评论 570 浏览 评分:0.0
问就是只会枚举 #include#defineendl'\n'usingnamespacestd;typedeflonglongi64;typedefinti32;typedeflongdoubleld;stringa,b;strings;intans;mapmp;voiddfs(intn){if(s.size()= 题解列表 2023年02月07日 0 点赞 0 评论 591 浏览 评分:0.0
第一次题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]={0}; int i,j,x; for(i=0;i<9;i++){ scanf("%…… 题解列表 2023年02月07日 0 点赞 0 评论 465 浏览 评分:0.0
题解 1013: [编程入门]Sn的公式求和 摘要:参考代码:n = int(input()) i = 1sn = 0while i <= n : sn += int(str(2)*i) i += 1print(sn)…… 题解列表 2023年02月07日 0 点赞 0 评论 520 浏览 评分:0.0
题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码import math #导入模块def main(n): #定义函数 return math.factorial(n)n = int(input())sn = …… 题解列表 2023年02月07日 0 点赞 0 评论 451 浏览 评分:0.0
结构体简化排序 解题思路:用结构体方式储存字符串以及字符串的长度可以更方便地进行排序注意事项:参考代码:typedefstructstr{charstr[101];intlen;}st;intmain(){intn=0;ststr[1000]={0};while(scanf("%d", 题解列表 2023年02月07日 0 点赞 0 评论 584 浏览 评分:0.0
2808: 买房子 摘要:解题思路:注意事项:参考代码:a = 200n,k = map(int,input().split())for i in range(1,22): if i > 20: print…… 题解列表 2023年02月07日 0 点赞 0 评论 655 浏览 评分:0.0
2068: [STL训练]Ignatius and the Princess IV (C++) 摘要:解题思路: 读入,排序,最中间的数即为所求注意事项: 无参考代码:#include <iostream> // #include <sstream> // #include <cstdio> #…… 题解列表 2023年02月07日 0 点赞 0 评论 508 浏览 评分:0.0
3000: 交换值 解题思路:注意事项:参考代码:a,b=map(int,input().split())c=a;a=b;b=cprint(a,b) 题解列表 2023年02月07日 0 点赞 0 评论 523 浏览 评分:0.0