题解列表

筛选

最短的代码

摘要:while True:     line = input().strip()     if line == '0':         break     numbers = l……

要加EOF,这是满分

摘要:while True:     try:         line = input().strip()         if line == 'END':     

找第一个只出现一次的字符

摘要:解题思路:可用列表将出现一次的字符打包注意事项:打包后,应先判断列表是否为空参考代码: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 ……

索引来解,dddd

摘要:while True:     try:         data = input().strip().split()         if len(data) == 8:      &