
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
PAT (Basic Level) 1036 跟奥巴马一起编程
题意输出指定字符和指定大小的空心正方形,实际输出正方形行数减半,列数不变。思路水~代码#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);int n;char c;...
PAT (Basic Level) 1008 数组元素循环右移问题
题意给定一个数组,将数组循环右移M位。思路rotate即可。注意m %= n。关于rotate函数的使用,详见cppreference。代码#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(n...
PAT (Basic Level) 1048 数字加密
题意给定数字串A和B,按指定规则加密,自行读题,不再赘述。思路模呗。注意统计结果以长串为准,而不是固定的A串或者B串的长度,所以短串要补0。计算结果注意消除前导0。坑还是不少的代码#include <bits/stdc++.h>using namespace std;int main() {ios::sync_with_stdio(false);cin.tie(n...
到底了







