結果

問題 No.2203 POWER!!!!!
ユーザー ch1channnch1channn
提出日時 2023-03-03 02:19:52
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 676 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 81,728 KB
実行使用メモリ 69,996 KB
最終ジャッジ日時 2023-10-17 21:15:43
合計ジャッジ時間 4,650 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
57,816 KB
testcase_01 AC 41 ms
53,468 KB
testcase_02 AC 38 ms
53,468 KB
testcase_03 AC 41 ms
59,684 KB
testcase_04 AC 41 ms
59,684 KB
testcase_05 AC 42 ms
59,684 KB
testcase_06 AC 42 ms
59,684 KB
testcase_07 AC 38 ms
53,492 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
if sys.platform =='ios':
	import clipboard
	a=clipboard.get()
	a = a.split('\n')
	text = '\n'.join(a)
	with open('input_file.txt','w') as f:
		f.write(text)
	sys.stdin = open('input_file.txt')
sys.setrecursionlimit(410000000)
stdin = sys.stdin 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
nm = lambda: map(int,input().split())
na_1 = lambda: list(map(lambda x:int(x)*(-1), stdin.readline().split()))
na_2 = lambda: list(map(lambda x:int(x)-1, stdin.readline().split()))

N = ni()
A = na()
k = max(A)
m = min(A)

ans = 0
for i in range(N):
	for j in range(N):
		ans += A[i]**A[j]
		
	
print(ans)
0