社区讨论
滑稽代码收集贴
灌水区参与者 19已保存回复 30
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 30 条
- 当前快照
- 1 份
- 快照标识符
- @mi6xpynm
- 此快照首次捕获于
- 2025/11/20 12:32 4 个月前
- 此快照最后确认于
- 2025/11/20 16:21 4 个月前
RT
先上一个:
CPP#include <bits/stdc++.h>
using namespace std;
#define orzDALAOTQL endl
string orz[51],chen_zhe;
char kkksc03[5][9] = {};
istream &drench = cin;
ostream &noip = cout;
pair<int,int> STO(char dalao)
{
pair<int,int> yyy2015c01;
int &w = yyy2015c01.first;
int &icy = yyy2015c01.second;
int laoK = dalao - 'A';
laoK += 3;
w = laoK / 8 + 1;
icy = laoK % 8 + 1;
return yyy2015c01;
}
int main()
{
int lin_toto;
drench >> lin_toto;
for(int himself65 = 1;himself65 <= lin_toto;himself65++)
{
drench >> orz[himself65];
}
drench >> chen_zhe;
memset(kkksc03,'*',sizeof(kkksc03));
for(int comeintopower = 1;comeintopower <= lin_toto;comeintopower++)
{
int yjjr = comeintopower;
const char *Hansbug = orz[yjjr].substr(0,chen_zhe.length()).c_str();//huaji
if(strcmp(Hansbug,chen_zhe.c_str()) == 0)
{
kkksc03[STO(orz[yjjr][chen_zhe.length()]).first][STO(orz[yjjr][chen_zhe.length()]).second] = orz[yjjr][chen_zhe.length()];
}
}
for(int zcyscy = 1;zcyscy <= 5;zcyscy++)
{
for(int oscar = 1;oscar <= 8;oscar++)
{
noip << kkksc03[zcyscy][oscar];
}
noip << orzDALAOTQL;
}
return 0;
}
回复
共 30 条回复,欢迎继续交流。
正在加载回复...