跳到正文

种瓜的李老头

224684

在洛谷打开
资料、奖项与版本

资料

编号
224684
抓取

奖项

2022 NOIP
一等奖
2021 NOIP
二等奖

2022/9/5 300AC祭

2022/9/12 红名祭

C++
#include<bits/stdc++.h>
using namespace std;
inline int read()
{
    int s=0,f=1;
    char c=getchar();
    while(c<'0'||c>'9')
    {
        if(c=='-') f=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9')
    {
        s=s*10+c-'0';
        c=getchar();
    }
    return s*f;
}
inline void print(int x)
{
    if(x==0)
    {
        putchar('0');
        putchar(' ');
        return;
    }
    char f[30];
    int a=x;
    if(a<0)
    {
        a=0-a;
        putchar('-');
    }
    int s=0;
    while(a>0)
    {
        f[s++]=a%10+'0';
        a/=10;
    }
    while(s>0)
        putchar(f[--s]);
    putchar(' ');
}
//数组大小,long long,初始化
int main()
{
    
    return 0;
}

还没有收录这位用户的文章。