• pta2


    #include<stdio.h> 

    int main (void)

    {

        int n, value, value1, value2, sum=0, x, value3, qian=1000, y=0, jishuqi=0;

        scanf("%d", &n);

        value=n/100000000;

        if(value!=0){

            printf("%cY", 'a'+value);                   

        }

            value1=n%100000000;

        value2=value1/10000;                     

        while(qian!=0){                              

            if(value2==0){

                break;

            }

            x=value2/qian;

            value2=value2%qian;

            qian=qian/10;

            y++;

            if(value==0&&x==0){               

                if(jishuqi!=1){

                    continue;

                }

            }

            if(x==0){

                sum++;

                if(sum<=1) {

                    if(y!=4){

                        printf("%c", 'a');

                    }  

                }

            }

            if(x!=0){

                sum=0;

                jishuqi=1;

                printf("%c", 'a'+x);

                switch(y){

                    case 1: printf("Q"); break;

                    case 2: printf("B"); break;

                    case 3: printf("S"); break;

                }

            }

        }

        if(y!=0){

  • 相关阅读:
    Windows进程端口相关命令
    SpringMVC获取请求的匹配方法对应的路径
    Feign配置远程调用时携带原请求的token
    LINUX的patch文件 何打patch
    如何制作LINUX的patch文件及如何打patch
    (转) 跟我一起写 Makefile --- 陈皓
    u-boot移植到mini2440,增加DM9000驱动的学习笔记
    DNW PL2303驱动解决问题
    kermit的安装,配置
    wpf中bool按钮三种方式
  • 原文地址:https://www.cnblogs.com/slob/p/10463012.html
Copyright © 2020-2023  润新知