题解列表

筛选

遍历三位数暴力解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    for(int i=100;i<1000;i++)    {        int k=i;       ……

直接格式输出

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n);    printf("%o",n);    retur……

找规律解决时间超限

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    long long n;    scanf("%lld",&n);    long long a[3000……

2903: 不高兴的津津c语言题解

摘要:解题思路:设立二维数组存储数据,在输入后用数组day[7]存判断循环中的时长最多的那天,最后判断时长是否大于8,然后输出。注意事项:参考代码:#include<stdio.h>int main(){ ……

python 线性筛法

摘要:解题思路:注意事项:参考代码:n=int(input()) ps=[True]*(n+1) p=[] for i in range(2,n+1):     if ps[i]:        ……

画矩形(python)

摘要:解题思路:用两个循环打出长宽的边,再用if判断是否为实心参考代码:length, width, symbol, solid = map(str, input().split()) for i in ……

宏定义之找最大数

摘要:解题思路:【LP】宏定义max函数进行解题for循环输出两行注意事项:#define max(a,b) ((a)>(b)?(a):(b)我们使用宏定义来实现了 max 函数和 count 宏。max ……

清晰高精度数字加法

摘要:解题思路:注意事项:参考代码://高精度数字相加#include#includechar n[1001], m[1001];int a[1001], b[1001], c[1001];int main……