PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SP0000168. Vi khuẩn kỳ lạ (Mysterious Bacteria)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Vi khuẩn kỳ lạ (Mysterious Bacteria)
Mysterious Bacteria
Source: LightOJ 1220 — https://lightoj.com/volume_showproblem.php?problem=1220
Edition: Phuoc Hung OJ Extended; one dataset per program run. Subtasks are authored for PHOJ, not claimed to be official.
Problem
Given an integer , find the largest positive exponent for which for an integer base . The exponent must be odd for negative . Output the original LightOJ case label.
Input
One integer ; the original is removed.
Output
Print exactly Case 1: p.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): , .
Example
Input
1073741824
Output
Case 1: 30
Explanation
, hence the required result is Case 1: 30.