QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#19819#1806. Character Gridconqueror_of_zky#AC ✓2ms3580kbC++14516b2022-02-11 16:08:112022-05-06 07:14:04

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-05-06 07:14:04]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3580kb
  • [2022-02-11 16:08:11]
  • 提交

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