QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#52842#1806. Character GridTain_U#AC ✓2ms3724kbC++438b2022-10-04 15:30:262022-10-04 15:30:29

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-04 15:30:29]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3724kb
  • [2022-10-04 15:30:26]
  • 提交

answer

#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;

int a[14][14];

int main(){
    for(int i=0;i<13;i++){
        for(int j=0;j<=i;j++){
            int x=i-j,y=j;
            a[x][y]=(i*(i+1)/2+j)%26;
            a[12-y][12-x]=a[x][y];
        }
    }
    printf("13\n");
    for(int i=0;i<13;i++){
        for(int j=0;j<13;j++)printf("%c",a[i][j]+'a');printf("\n");
    }
    return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3724kb

input:



output:

13
acfjoubjscnzm
beintairbmylz
dhmszhqalxkyn
glrygpzkwjxmc
kqxfoyjviwlbs
pwenxiuhvkarj
vdmwhtgujzqib
clvgsftiyphau
kufreshxogzto
teqdrgwnfysnj
dpcqfvmexrmif
obpeuldwqlhec
aodtkcvpkgdba

result:

ok accepted