QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#19819 | #1806. Character Grid | conqueror_of_zky# | AC ✓ | 2ms | 3580kb | C++14 | 516b | 2022-02-11 16:08:11 | 2022-05-06 07:14:04 |
Judging History
answer
#include <bits/stdc++.h>
//#define int long long
#define ll long long
#define db double
#define fi first
#define se second
#define pii pair<int,int>
#define vi vector<int>
using namespace std;
int a[15][15];
int main() {
cout<<13<<'\n';
for (int i=1;i<=13;i++) {
for (int j=1;j<=13;j++) {
if ((i+j)&1) {
a[i][j]=i-1;
}
else a[i][j]=j-1+13;
}
}
for (int i=1;i<=13;i++) {
for (int j=1;j<=13;j++) {
putchar(char(a[i][j]+'a'));
}
puts("");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3580kb
input:
output:
13 naparatavaxaz bobqbsbubwbyb ncpcrctcvcxcz dodqdsdudwdyd neperetevexez fofqfsfufwfyf ngpgrgtgvgxgz hohqhshuhwhyh nipiritivixiz jojqjsjujwjyj nkpkrktkvkxkz lolqlslulwlyl nmpmrmtmvmxmz
result:
ok accepted