알고리즘

[알고리즘] 백준 11282 - 한글 (C++)

blueberrysoda 2024. 11. 19. 23:55

[문제 링크] : https://www.acmicpc.net/problem/11282

#include <iostream>
using namespace std;

int main(){
    int N;
    string S;
    cin >> N;

    N += 3071;
    S.push_back(N / 4096 + 234);
    S.push_back(N / 64 % 64 + 128);
    S.push_back(N % 64 + 128);

    cout << S << "\n";
    return 0;
}