입력 조건에는 첫 줄에는 N, 두 번째 줄에는 K가 주어진다고 쓰여 있지만 대회 데이터를 확인해 보니 예제를 포함한 모든 데이터에서 N과 K가 같은 줄에 주어지고 있습니다.
The first line contains a single integer, N. The second line contains a single integer K(1 ≤ K ≤ 1018). The third line ...
→ The first line contains two integers, N and K(1 ≤ K ≤ 1018). The second line ...
doju 7년 전
입력 조건에는 첫 줄에는 N, 두 번째 줄에는 K가 주어진다고 쓰여 있지만 대회 데이터를 확인해 보니 예제를 포함한 모든 데이터에서 N과 K가 같은 줄에 주어지고 있습니다.
The first line contains a single integer, N. The second line contains a single integer K(1 ≤ K ≤ 1018). The third line ...
→ The first line contains two integers, N and K(1 ≤ K ≤ 1018). The second line ...