题解列表
要加EOF,这是满分
摘要:while True:
try:
line = input().strip()
if line == 'END':
蓝桥杯算法提高VIP-复数求和
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef struct Lnode{ int date1; int date2; ……
找第一个只出现一次的字符
摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码:a=input()ls=[]for i in a: if (a.count(i)==1): l……
c++偶数求和简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int n,m; while(cin>>n>>m) { for(i……
c++字符串简单解法
摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string ……
求矩阵的两对角线上的元素之和
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int arr[n][n]……
2867: 单词的长度(C语言)
摘要: #include
int main()
{
char a[1000];
gets(a);
char *p1,*p2;
p1=a;
p2=a;
int ……
先通分,后递归化简,python
摘要:n=int(input())t=[]for x in range(n): t.append(list(map(int,input().split('/'))))m=[]for x……