第十届蓝桥杯大赛个人赛省赛(软件类)\C语言B组--2019年

 

//年号字串
#include<stdio.h>
int main(){
    int n;
    scanf("%d",&n);
    char a[] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
    printf("%c%c%c",a[(n/26/26)%26-1],a[(n/26)%26-1],a[n%26-1]);
    return 0;
}  
posted @ 2020-01-17 20:24  Hqx_curiosity  阅读(551)  评论(0编辑  收藏  举报