题解列表
1169: 绝对值排序
摘要:```cpp
#include
using namespace std;
bool cmp(int x,int y){
return abs(x)>abs(y);
}
int px……
8行:万花丛中过,片叶不沾身
摘要:````
li=[]
n=int(input())
l=list(map(int,input().split()))
for s in l:
if s%2==1:
……
2863: 删除单词后缀
摘要:解题思路:注意事项:参考代码:s = input()t = s[-3::1]if ('er' in t) or ('ly' in t): s = s[:-2:1]……
1129: C语言训练-排序问题(2)
摘要:```cpp
#include
using namespace std;
int px(int a[]){
for(int i=0;i>a[i];
sort(a,a+10);
for……
解 2861: 验证子串
摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()if a.find(b) != -1: print(f"{b} is substring……
1128: C语言训练-排序问题(1)
摘要:```cpp
#include
using namespace std;
int px(int a[]){
for(int i=0;i>a[i];
sort(a,a+4);
for(……
2860: 字符串判等
摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.replace(" ", "")d = b.replace(" ", "")c =……
2859: 忽略大小写的字符串比较
摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.upper()d = b.upper()if c == d: print("……
1127: C语言训练-尼科彻斯定理
摘要:```cpp
#include
using namespace std;
int nkcs(int m){
int n=m*m*m,i;
printf("%d*%d*%d=%d=",m,……