1073: 弟弟的作业(python 代码) 摘要:解题思路:注意事项:参考代码:s =0 while True: try: m = input() if '?' not in m: if '+' in …… 题解列表 2022年01月16日 0 点赞 0 评论 672 浏览 评分:0.0
python-删除数组中的0元素 摘要:解题思路:看题解中没有用python写的,这里就简单写一下。思路不难。python的列表修改是动态的,如果采用下标索引删除的方法的话,由于下标在变化,因此处理起来稍有麻烦,这里采用重新建立一个列表。将…… 题解列表 2022年01月16日 0 点赞 0 评论 1261 浏览 评分:0.0
1074: 数字整除 摘要:解题思路:注意事项:参考代码:while True: try: m = input() if int(m) == 0: &n 题解列表 2022年01月16日 0 点赞 0 评论 271 浏览 评分:0.0
买不到的数目 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ if(a<=1…… 题解列表 2022年01月16日 0 点赞 0 评论 275 浏览 评分:0.0
[编程入门]电报加密(避免使用gets()的解法 摘要:看到大家用的都是gets的解法,而gets由于输入易溢出的问题已经不时兴了。这里为大家提供只用scanf的方法解题思路:输入到字符数组存储,注意空格也要存入。(这里可以体现出get的便利性,因为get…… 题解列表 2022年01月16日 0 点赞 0 评论 376 浏览 评分:0.0
结构体之成绩记录(这大概是最不用动脑子的答案了) 摘要:```c #include typedef struct student{ char id[100]; char name[100]; int mark1; …… 题解列表 2022年01月16日 0 点赞 0 评论 532 浏览 评分:0.0
python-数组替换 摘要:解题思路:常规思路。注意事项:注意题目要求,相当于是替换了数组A中m1之后的n1个元素,然后要把数组A中的m1+n1之后的元素再加上。参考代码:def function(m,n): A …… 题解列表 2022年01月16日 0 点赞 0 评论 394 浏览 评分:0.0
python-Torry的困惑(素数筛选时间优化) 摘要:解题思路:注意事项:注意素数筛选的时间优化,不然大概率超时。参考代码:from math import sqrt def Isprime(x): if x % 2 == 0…… 题解列表 2022年01月16日 0 点赞 0 评论 367 浏览 评分:0.0
题解 1047: [编程入门]报数问题 (简单解法-转圈圈) 摘要:```c #include int fl(int*a,int n){ int i,cnt=0,stop=0; //cnt用来找第3次,stop标志停止 for(i=0;i…… 题解列表 2022年01月16日 0 点赞 0 评论 410 浏览 评分:0.0
题解 1014: [编程入门]阶乘求和 摘要:**注意求和sum与各项item都需要申请long long ** **printf的时候也要用%lld ** ```c #include int main() { int n…… 题解列表 2022年01月17日 0 点赞 0 评论 319 浏览 评分:0.0