比如:写段程序,用C运行输出C,用C++运行输出C++
UOJ系统能不能出polyglot题
2024-04-13 12:45:18 By 837951602
评论
ccf_std
```c
#include<stdio.h>
int main(){
#ifdef __cplusplus
printf("C++");
#else
printf("C");
#endif
return 0;
}
```
- 2025-04-14 16:44:27
发表评论
可以用@mike来提到mike这个用户,mike会被高亮显示。如果你真的想打“@”这个字符,请用“@@”。