9 solutions

  • 0
    @ 2024-11-29 22:00:39

    luogu-B2018题解

    luogu-B2017双倍经验

    主要题意

    输入一个数字,输出它相对的 ASCII 码转化的字符。

    解题思路

    输入数字后,直接强制转换为char类型输出。

    上代码!

    #include<bits/stdc++.h>
    using namespace std;
    int a;
    int main()
    {
        cin>>a;
        cout<<(char)a;
        return 0;
    }
    
    

    Information

    ID
    4468
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    282
    Accepted
    216
    Uploaded By