結果

問題 No.2186 冪乗の片側極限
ユーザー ygd.ygd.
提出日時 2023-01-13 21:54:14
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 702 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 72,804 KB
最終ジャッジ日時 2023-08-26 03:37:59
合計ジャッジ時間 9,772 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
72,592 KB
testcase_01 AC 109 ms
72,708 KB
testcase_02 AC 107 ms
72,520 KB
testcase_03 AC 108 ms
72,608 KB
testcase_04 AC 108 ms
72,516 KB
testcase_05 AC 107 ms
72,324 KB
testcase_06 AC 106 ms
72,588 KB
testcase_07 AC 108 ms
72,628 KB
testcase_08 AC 108 ms
72,704 KB
testcase_09 AC 105 ms
72,512 KB
testcase_10 WA -
testcase_11 AC 108 ms
72,360 KB
testcase_12 AC 111 ms
72,616 KB
testcase_13 AC 110 ms
72,332 KB
testcase_14 AC 106 ms
72,620 KB
testcase_15 AC 106 ms
72,656 KB
testcase_16 AC 105 ms
72,436 KB
testcase_17 AC 106 ms
72,716 KB
testcase_18 AC 106 ms
72,588 KB
testcase_19 AC 108 ms
72,476 KB
testcase_20 AC 110 ms
72,520 KB
testcase_21 AC 111 ms
72,508 KB
testcase_22 AC 110 ms
72,568 KB
testcase_23 AC 108 ms
72,764 KB
testcase_24 AC 108 ms
72,360 KB
testcase_25 AC 109 ms
72,716 KB
testcase_26 AC 108 ms
72,800 KB
testcase_27 AC 110 ms
72,592 KB
testcase_28 AC 106 ms
72,528 KB
testcase_29 AC 109 ms
72,480 KB
testcase_30 AC 108 ms
72,700 KB
testcase_31 AC 108 ms
72,536 KB
testcase_32 AC 111 ms
72,700 KB
testcase_33 AC 112 ms
72,612 KB
testcase_34 AC 110 ms
72,592 KB
testcase_35 AC 108 ms
72,700 KB
testcase_36 AC 110 ms
72,596 KB
testcase_37 AC 109 ms
72,464 KB
testcase_38 AC 108 ms
72,324 KB
testcase_39 AC 107 ms
72,532 KB
testcase_40 AC 108 ms
72,804 KB
testcase_41 AC 107 ms
72,512 KB
testcase_42 AC 108 ms
72,324 KB
testcase_43 AC 107 ms
72,804 KB
testcase_44 AC 108 ms
72,276 KB
testcase_45 AC 109 ms
72,512 KB
testcase_46 AC 108 ms
72,324 KB
testcase_47 AC 108 ms
72,704 KB
testcase_48 AC 109 ms
72,640 KB
testcase_49 AC 108 ms
72,712 KB
testcase_50 AC 109 ms
72,472 KB
testcase_51 AC 109 ms
72,700 KB
testcase_52 AC 111 ms
72,532 KB
testcase_53 AC 110 ms
72,600 KB
testcase_54 AC 109 ms
72,464 KB
testcase_55 AC 111 ms
72,512 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(1)
    else:
        print(pow(a,b))

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