求卡内存dalao

学术版

你这不可做吧……C语言空main不导入头文件都有1324kb内存
by panda_2134 @ 2018-06-09 15:02:48


实测不可过 (原 $\text{AC}$ 的所有程序)。发一个较优的代码: ```cpp #include<cstdio> #include<cmath> #include<cctype> using namespace std; inline void read(int&x){ char c=getchar();x=0; while(!isdigit(c))c=getchar(); while(isdigit(c))x=(x<<1)+(x<<3)+c-48,c=getchar(); } int main(){int x; read(x); int sqt = sqrt(x+.5); if(sqt*sqt==x)putchar('Y'); else putchar('N'); } ```
by hellomath @ 2018-06-09 16:03:17


不可做题吧……
by x义x @ 2018-06-09 16:10:07


1MB 肯定不可做啊。。。
by Siyuan @ 2018-06-09 16:27:55


残害4MB内存的pascal选手(逃
by Siyuan @ 2018-06-09 16:28:20


这个代码86分... ```cpp #include<stdio.h> int main() { unsigned int x=0,i; while(i=getchar(),'0'<=i&i<='9') x=x*10+i-'0'; for(i=0;i*i<=x;i++) if(i*i==x) { putchar('Y'); return 0; } putchar('N'); } ```
by happyZYM @ 2018-06-10 10:27:15


@[xenonex](/space/show?uid=86061) 这题可能只能用汇编做了.....
by happyZYM @ 2018-06-10 12:29:01


#include<iostream> using namespace std; int main(){ return 0; } 这东西mle
by spcmdxp @ 2018-06-16 19:54:53


|