2867: 单词的长度(C语言) 摘要: #include int main() { char a[1000]; gets(a); char *p1,*p2; p1=a; p2=a; int …… 题解列表 2023年10月18日 0 点赞 0 评论 507 浏览 评分:0.0
索引来解,dddd 摘要:while True: try: data = input().strip().split() if len(data) == 8: & 题解列表 2023年10月18日 0 点赞 0 评论 304 浏览 评分:9.9
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int arr[n][n]…… 题解列表 2023年10月18日 0 点赞 0 评论 301 浏览 评分:0.0
c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string …… 题解列表 2023年10月18日 0 点赞 0 评论 240 浏览 评分:0.0
c++偶数求和简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,m; while(cin>>n>>m) { for(i…… 题解列表 2023年10月18日 0 点赞 0 评论 463 浏览 评分:0.0
找第一个只出现一次的字符 摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a: if (a.count(i)==1): l…… 题解列表 2023年10月18日 0 点赞 0 评论 330 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef struct Lnode{ int date1; int date2; …… 题解列表 2023年10月18日 0 点赞 0 评论 351 浏览 评分:9.9
要加EOF,这是满分 摘要:while True: try: line = input().strip() if line == 'END': 题解列表 2023年10月18日 0 点赞 0 评论 368 浏览 评分:9.9
最短的代码 摘要:while True: line = input().strip() if line == '0': break numbers = l…… 题解列表 2023年10月18日 0 点赞 0 评论 351 浏览 评分:7.3
选择排序(c语言小白) 摘要:解题思路:用数组来存放这10个数,然后分别在数组里找到第一.二.三...小的分别赋值给下标为arr[0],arr[1].arr[2]....的注意事项:每一次排列好第一小的,就排列其他剩余的第一小的。…… 题解列表 2023年10月17日 0 点赞 0 评论 358 浏览 评分:0.0