资源简介
2019PAT冬季甲级题目及解答

代码片段和文件信息
#include
#include
#include
using namespace std;
char arr[26][7][6];
string s;
void call(const string &s) {
//7行
for (int i = 0; i < 7; i++) {
for (int j = 0; j < s.length(); j++) {
printf(“%5s“ arr[s[j] - ‘A‘][i]);
if (j != s.length() - 1)
printf(“ “);
}
if (i != 6)
printf(“\n“);
}
}
int main() {
for (int i = 0; i < 26; i++) {
for (int j = 0; j < 7; j++) {
scanf(“%s“ arr[i][j]);
}
}
//削除换行符
getchar();
getline(cin s);
int pos = 0 pre;
bool op = false;
while (pos < s.length()) {
while (pos < s.length() && !(s[pos] >= ‘A‘ && s[pos] <= ‘Z‘))
++pos;
if (pos == s.length())
break;
pre = pos;
while (pos < s.length() && s[pos] >= ‘A‘ && s[pos] <= ‘Z‘)
++pos;
if (op)
printf(“\n\n“);
op = true;
call(s.substr(pre pos - pre));
}
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1091 2020-11-30 21:11 2019冬季甲级\19冬季1.cpp
文件 839 2020-11-30 22:25 2019冬季甲级\19冬季2.cpp
文件 1594 2020-11-30 21:12 2019冬季甲级\19冬季3.cpp
文件 988 2020-11-30 21:12 2019冬季甲级\19冬季4.cpp
文件 309408 2020-11-30 21:14 2019冬季甲级\A.pdf
文件 157598 2020-11-30 21:17 2019冬季甲级\B.pdf
文件 143482 2020-11-30 21:16 2019冬季甲级\C.pdf
文件 157752 2020-11-30 21:16 2019冬季甲级\D.pdf
- 上一篇:数据结构课程设计之车厢调度
- 下一篇:2020PAT春季甲级 题目及AC代码
相关资源
- The Secret Path 3D 3D魔方迷宫[源码][scra
- Xpath生成器,自动生成可用的Xpath。
-
xm
l课件及例题(xm l) -
Differential ex
pression patterns of Toll-li - 希捷固件7200.9 TONKA15 S.71 3..ACH PATA.ra
- Anti-biofilm Activity of Resveratrol and Ursol
- Navicat Keygen Patch v5.6.0 DFoX
- Game Programming Patterns.pdf
- Microservice patterns
- dive into design patterns(Alexander Shvets)
- Investigation of the Lower Resistance Meridian
-
A web-ba
sed interview platform with geospat - Addison Wesley Refactoring To Patterns.pdf
- PatchNavicat11.0.10破解文件亲测可用
- A Pathfinding Project Pro v4.2.2.rar
- Characterization and Cytocompatibility of Nano
- patchedcode.bin
- IT十年经典书系列英文版-Design_Patter
- OzCode3.X Patch 注册机
- Bishop - Pattern Recognition And Machine Learn
- The evolution and origin of animal Toll-like r
- Pathon开发象棋小游戏总文件
- 计算机组成与设计:软硬件接口技术
- PathSim代码实现
- 《重构与模式》Refactoring to Patterns中文
- Visual SVN 4.0.2 Patch
- Molecular identification polymorphism and asso
- THE RAS/PI3K PATHWAY IS INVOLVED IN THE IMPAIR
- hands-on_design-patterns-delphi_pdf-code.rar
- unity寻路插件:A*Pathfinding
评论
共有 条评论