鱼C论坛

 找回密码
 立即注册
查看: 2922|回复: 9

[作品展示] 玩玩而已,不必当真(<_<),这个非常整齐了!

[复制链接]
匿名鱼油
匿名鱼油  发表于 2023-1-7 15:49:55 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 匿名 于 2023-1-8 16:43 编辑
  1. #define Header <iostream>
  2. /*Here's my benediction to you*/#ifnd\
  3. ef Header         /*I'm very happy */
  4. #error no de\/*Why?*/
  5. /*if you say the same to me*/fine Header
  6. #else
  7. #include Header
  8. #define A using namespace std;
  9. A
  10. #define _____ 1
  11. #end\
  12. if  
  13. #define Start2023 main
  14. typedef
  15.         #define ___ int
  16. /*__ _ ____ is ok*/                 bool
  17.                 #define __ ___
  18.         _char64;
  19.         typedef
  20.                 #d\
  21. efine Year2022 ;                /*___ _ = (__)_____*/
  22.                 #define s\
  23. ay Year2022
  24.                 #define NewYear (__\
  25. _)(0x26 - 046)
  26.                 #define Ha\
  27. ppy return
  28.                 #define elsa(dl, kl) if(kl){dl;}
  29.                 #define when(dl, kl) while(dl){kl;}
  30.                         #define whila(l1, kl, k1, ll) for(ll; l1; k1){kl;}
  31.                 #define out cin
  32.         #define in(e) cout<<#e
  33.                 char ____;
  34.                 __ c1 = (___)NewYear, i, j;
  35.                 const ___ l      =  01000 * 0x2 * 10;
  36.                 ____ c, *ca[l];
  37.         _char64 c3[l];
  38.         #define starts elsa(in(Happy New Year! It is only an easy GAME! \n),!c1);
  39.         #define to say
  40.                 #define you }
  41.                         #define will whila(i<l,out>>ca[i]; elsa(in(新年快乐!\n), ca[i] == "The same to you!"),i++,i = 1);
  42.         #define New __
  43.         #defi\
  44. ne I         // Me
  45. /*A game which is easy to play*/ #define Y\
  46. ear Start2023(){       
  47. A New Year starts ;I will say Happy NewYear to you /*It's very easy!*/
复制代码


看到玩玩!
题目:1、整理程序!(1分)我已经帮你整理好了!
2、这个程序浪费了多少内存?(2分)
3、这个程序一共输出了几行?(2分)
4、这个程序实现了什么功能?(5分)
5、上面问题答完后,放入编译器运行,请把你的输入列表发出来(Q_Q)!(90分)
非常简单,真的就是玩玩,闲得慌!
回复

使用道具 举报

发表于 2023-1-7 17:59:56 | 显示全部楼层
?
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2023-1-7 18:02:13 | 显示全部楼层
《整齐》
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-7 18:17:22 | 显示全部楼层

回帖奖励 +1 鱼币

我猜你是zhangjinxuan
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-7 20:56:02 | 显示全部楼层
高山 发表于 2023-1-7 18:17
我猜你是zhangjinxuan

no,我是看到他的随便写的,怎么样,简单吧!
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-7 20:56:59 | 显示全部楼层

不整齐吗?(Q^Q)
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 14:28:51 | 显示全部楼层
1.

  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;

  4. int i;
  5. char ca[10240][1000];

  6. int main() {
  7.         cout << "Happy New Year! It is only an easy GAME! \n";
  8.         for (i = 1; i < 10240; ++i) {
  9.                 fgets(ca[i], 1000, stdin);
  10.                 if (strcmp(ca[i], "The same to you!\n") == 0)
  11.                         cout << "新年快乐!\n";
  12.         }
  13.         return 0;
  14. }
复制代码

2. 至少 10240004 字节
3. 至少一行,最多 10240 行
4. 先输出 Happy New Year! It is only an easy GAME!,再输入 10239 行字符串,如果这一行的字符串是 The same to you!,再输出 "新年快乐!
5.

输入与输出.zip

1.12 KB, 下载次数: 0

小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 14:29:25 | 显示全部楼层
你的程序本身好像就有bug
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 16:42:46 | 显示全部楼层
zhangjinxuan 发表于 2023-1-8 14:29
你的程序本身好像就有bug

编译器运行正常,Vc和通C都可以
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 17:16:23 | 显示全部楼层
C丁洞杀O 发表于 2023-1-8 16:42
编译器运行正常,Vc和通C都可以


真是神奇,还可以支持 ca[ i] == "The same to you!\n" 这种语法?
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-4-22 22:36

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表