题解列表

筛选

杨辉三角 python

摘要:解题思路:注意事项:参考代码:i,j=map(int,input().split())n=1000a=[[0]*n for i in range(n)]for c in range(n):    fo……

三个字符串的排序

摘要:strlen:字符串长度strcmp(a,b):字符串大小比较,如果a大于b,大于0。前面减后面strcpy(a,b):字符串拷贝,把b拷贝给a。后面赋值给前面#include <stdio.h> ……

C++ 究极三目运算符

摘要:解题思路:读入字符串并判断是否符合题意。注意事项:没什么,就是想尝试一下最短代码。参考代码:#include<cstring>#include<stdio.h>int main(){     int ……