鱼C论坛

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

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

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

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

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

x
本帖最后由 匿名 于 2023-1-8 16:43 编辑
#define Header <iostream>
/*Here's my benediction to you*/#ifnd\
ef Header         /*I'm very happy */
#error no de\/*Why?*/
/*if you say the same to me*/fine Header
#else
#include Header
#define A using namespace std;
A
#define _____ 1 
#end\
if  
#define Start2023 main 
typedef
        #define ___ int
/*__ _ ____ is ok*/                 bool 
                #define __ ___ 
        _char64; 
        typedef 
                #d\
efine Year2022 ;                /*___ _ = (__)_____*/
                #define s\
ay Year2022
                #define NewYear (__\
_)(0x26 - 046)
                #define Ha\
ppy return
                #define elsa(dl, kl) if(kl){dl;}
                #define when(dl, kl) while(dl){kl;}
                        #define whila(l1, kl, k1, ll) for(ll; l1; k1){kl;}
                #define out cin
        #define in(e) cout<<#e 
                char ____;
                __ c1 = (___)NewYear, i, j;
                const ___ l      =  01000 * 0x2 * 10;
                ____ c, *ca[l];
        _char64 c3[l];
        #define starts elsa(in(Happy New Year! It is only an easy GAME! \n),!c1);
        #define to say
                #define you }
                        #define will whila(i<l,out>>ca[i]; elsa(in(新年快乐!\n), ca[i] == "The same to you!"),i++,i = 1);
        #define New __
        #defi\
ne I         // Me
/*A game which is easy to play*/ #define Y\
ear Start2023(){        
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 | 显示全部楼层
?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2023-1-7 18:02:13 | 显示全部楼层
《整齐》
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

回帖奖励 +1 鱼币

我猜你是zhangjinxuan
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

no,我是看到他的随便写的,怎么样,简单吧!
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

不整齐吗?(Q^Q)
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 14:28:51 | 显示全部楼层
1.
#include <iostream>
#include <cstring>
using namespace std;

int i;
char ca[10240][1000];

int main() {
        cout << "Happy New Year! It is only an easy GAME! \n";
        for (i = 1; i < 10240; ++i) {
                fgets(ca[i], 1000, stdin); 
                if (strcmp(ca[i], "The same to you!\n") == 0)
                        cout << "新年快乐!\n";
        }
        return 0; 
}
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

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2023-1-8 14:29:25 | 显示全部楼层
你的程序本身好像就有bug
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

编译器运行正常,Vc和通C都可以
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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


真是神奇,还可以支持 ca[ i] == "The same to you!\n" 这种语法?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-21 00:40

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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