题解列表
求矩阵的两对角线上的元素之和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int arr[n][n]……
c++字符串简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string ……
c++偶数求和简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,m; while(cin>>n>>m) { for(i……
找第一个只出现一次的字符
摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a: if (a.count(i)==1): l……
蓝桥杯算法提高VIP-复数求和
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef struct Lnode{ int date1; int date2; ……
要加EOF,这是满分
摘要:while True:
try:
line = input().strip()
if line == 'END':
选择排序(c语言小白)
摘要:解题思路:用数组来存放这10个数,然后分别在数组里找到第一.二.三...小的分别赋值给下标为arr[0],arr[1].arr[2]....的注意事项:每一次排列好第一小的,就排列其他剩余的第一小的。……