[파이썬][백준 24218번] Double Crypt 1
1. 문제Permalink
[Bronze V] Double Crypt 1 - 24218Permalink
성능 요약Permalink
메모리: 30860 KB, 시간: 64 ms
분류Permalink
구현(implementation)
문제 설명Permalink
The Advanced Encryption Standard (AES) involves a new strong encryption algorithm. It works with three blocks of
The inverse of the AES encryption function
In Double AES, two independent key blocks
In this task, an integer
You are to recover the encryption key pairs for some messages encrypted by Double AES. You are given both the plaintext
You must submit the recovered keys, and not a recovery program.
입력Permalink
You are given ten problem instances in the text files named double1.in
to double10.in
. Each input file consists of three lines. The first line contains the integer 0
'..'9
', 'A
'..'F
'). The library provides a routine to convert strings to blocks. All input files are solvable.
출력Permalink
The first line contains the key block
Both blocks must be written as strings of 32 hexadecimal digits ('0
'..'9
', 'A
'..'F
'). If there are multiple solutions, you need submit only one of them.
출처: 백준, https://https://www.acmicpc.net/
2. 해결방법 시간복잡도Permalink
- 단순 코딩 O(1)
3. 문제 해결 및 코드Permalink
print("""A0000000000000000000000000000000 | |
70000000000000000000000000000000""") |
-
주석을 참고하면서 이해를 돕습니다.Permalink
4. 알고리즘 및 해설Permalink
- 문제의 핵심은 해당 32자리수를 출력하는 것이다.
- 그러므로 해당 수를 출력해준다.