結果

問題 No.2186 冪乗の片側極限
ユーザー ygd.ygd.
提出日時 2023-01-13 21:55:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 702 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 72,796 KB
最終ジャッジ日時 2023-08-26 03:40:19
合計ジャッジ時間 8,444 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
72,560 KB
testcase_01 AC 111 ms
72,696 KB
testcase_02 AC 115 ms
72,672 KB
testcase_03 AC 109 ms
72,664 KB
testcase_04 AC 114 ms
72,692 KB
testcase_05 AC 109 ms
72,548 KB
testcase_06 AC 106 ms
72,464 KB
testcase_07 AC 111 ms
72,684 KB
testcase_08 AC 109 ms
72,760 KB
testcase_09 AC 108 ms
72,692 KB
testcase_10 AC 108 ms
72,600 KB
testcase_11 AC 109 ms
72,484 KB
testcase_12 AC 111 ms
72,500 KB
testcase_13 AC 109 ms
72,656 KB
testcase_14 AC 107 ms
72,652 KB
testcase_15 AC 109 ms
72,368 KB
testcase_16 AC 108 ms
72,592 KB
testcase_17 AC 107 ms
72,420 KB
testcase_18 AC 108 ms
72,600 KB
testcase_19 AC 110 ms
72,616 KB
testcase_20 AC 109 ms
72,512 KB
testcase_21 AC 107 ms
72,332 KB
testcase_22 AC 109 ms
72,692 KB
testcase_23 AC 106 ms
72,516 KB
testcase_24 AC 108 ms
72,596 KB
testcase_25 AC 109 ms
72,588 KB
testcase_26 AC 112 ms
72,528 KB
testcase_27 AC 112 ms
72,596 KB
testcase_28 AC 112 ms
72,728 KB
testcase_29 AC 112 ms
72,524 KB
testcase_30 AC 112 ms
72,548 KB
testcase_31 AC 111 ms
72,528 KB
testcase_32 AC 110 ms
72,680 KB
testcase_33 AC 113 ms
72,796 KB
testcase_34 AC 111 ms
72,628 KB
testcase_35 AC 109 ms
72,280 KB
testcase_36 AC 109 ms
72,484 KB
testcase_37 AC 109 ms
72,684 KB
testcase_38 AC 117 ms
72,596 KB
testcase_39 AC 109 ms
72,544 KB
testcase_40 AC 109 ms
72,464 KB
testcase_41 AC 109 ms
72,660 KB
testcase_42 AC 113 ms
72,628 KB
testcase_43 AC 109 ms
72,724 KB
testcase_44 AC 110 ms
72,396 KB
testcase_45 AC 110 ms
72,744 KB
testcase_46 AC 109 ms
72,636 KB
testcase_47 AC 110 ms
72,660 KB
testcase_48 AC 113 ms
72,572 KB
testcase_49 AC 111 ms
72,692 KB
testcase_50 AC 111 ms
72,604 KB
testcase_51 AC 111 ms
72,764 KB
testcase_52 AC 110 ms
72,556 KB
testcase_53 AC 109 ms
72,624 KB
testcase_54 AC 109 ms
72,704 KB
testcase_55 AC 110 ms
72,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#input = sys.stdin.readline
#input = sys.stdin.buffer.readline #文字列はダメ
#sys.setrecursionlimit(1000000)
#import math
#import bisect
#import itertools
#import random
#from heapq import heapify, heappop, heappush
from collections import defaultdict
from collections import deque
import copy #DeepCopy: hoge = [_[:] for _ in hogehoge]
#from functools import lru_cache
#@lru_cache(maxsize=None)
MOD = pow(10,9) + 7
#MOD = 998244353
dx = [1,0,-1,0]
dy = [0,1,0,-1]
#dx8 = [1,1,0,-1,-1,-1,0,1]
#dy8 = [0,1,1,1,0,-1,-1,-1]

def main():
    a = int(input())
    b = int(input())
    if a == b == 0:
        print(0)
    else:
        print(pow(a,b))

if __name__ == '__main__':
    main()
0