【续前帖】脑洞题已更新10组毒瘤数据

灌水区

这个。。保证没有编译错误吧
by NaCly_Fish @ 2019-02-20 23:54:32


设定关键字搜索吧
by HPCat @ 2019-02-21 01:43:16


这个要出比赛的话IOI还行
by HPCat @ 2019-02-21 01:43:40


@[wenge](/space/show?uid=120609) 请问Python代码里有注释吗? 特指 ``` #include<iostream> #define something int main() { python code } ``` 另外,测试点中的代码是否都有功能?特指 ```cpp main(){} ``` 之类的。。。 最后,这个东西如果真要出成比赛题,建议
by partychicken @ 2019-02-21 08:08:19


@[wenge](/space/show?uid=120609) https://www.luogu.org/recordnew/show/16528984 加强版已A
by ThinkofBlank @ 2019-02-21 08:16:31


@[wenge](/space/show?uid=120609) 要不整一个输入一段代码看看编译结果会是什么???
by int_zxc @ 2019-02-21 08:39:38


附上35分代码 ```cpp #include<cstdio> #include<cstring> char a[10000005]; int main(){ while(1) { scanf("%s",a); if(strstr(a,"int main")) { printf("c++"); return 0; } if(strstr(a,"public class Main")) { printf("java"); return 0; } if(strstr(a,"end.")) { printf("pascal"); return 0; } if(strstr(a,"input")) { printf("python"); return 0; } } return 0; } ``` 无限循环超时了
by pomelo_nene @ 2019-02-21 08:58:21


@[ThinkofBlank](/space/show?uid=81847) 这个估计就是模拟编译。要做到真正的正解可能要几百行
by wenge @ 2019-02-21 09:46:04


@[wenge](/space/show?uid=120609) 嗯
by ThinkofBlank @ 2019-02-21 10:28:38


|