a621. 1. Powers of Two
Tags :
Accepted rate: 2387人/ 2449人 ( 97%) [非即時]
評分方式:
Tolerant

最近更新 : 2013-02-19 17:02

Content
讀入一個非負整數 N (範圍 0 到 20) 並印出 2 的次方從 1 到 2n。你不需要驗證整數是否在範圍內。
Input
輸入只有一行,含有一個整數 n。
Output
依範例輸出格式印出 1 到 2n 共 n + 1 行。
Sample Input #1
6
Sample Output #1
2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8
2^4 = 16
2^5 = 32
2^6 = 64
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (50%): 1.0s , <1K
公開 測資點#1 (50%): 1.0s , <1K
Hint :
Tags:
出處:
HP CodeWars 2007 [管理者: snail (蝸牛) ]

Status Forum 排行

ID User Problem Subject Hit Post Date
54125 rumm2859@gma ... (青) a621
python
42 2025-11-26 15:46
27108 406490150@gm ... (我是朱朱) a621
1142 2021-09-13 13:49
46426 s0923864@gm. ... (19楊昀瑾) a621
阿巴阿巴
121 2025-06-21 07:16
45803 chen971023@g ... (ZiaynGZiyaNG) a621
西嘉嘉
185 2025-04-14 23:56
41449 ianlin766909 ... (ian lin) a621
python超簡單喔!!!
382 2024-07-27 18:09