結果

問題 No.1389 Clumsy Calculation
ユーザー ch1channnch1channn
提出日時 2023-01-27 01:50:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 105,956 KB
最終ジャッジ日時 2023-09-09 23:06:40
合計ジャッジ時間 6,017 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,012 KB
testcase_01 AC 69 ms
71,016 KB
testcase_02 AC 69 ms
71,268 KB
testcase_03 AC 77 ms
75,716 KB
testcase_04 AC 73 ms
75,608 KB
testcase_05 AC 73 ms
75,940 KB
testcase_06 AC 74 ms
75,644 KB
testcase_07 AC 74 ms
75,616 KB
testcase_08 AC 70 ms
71,388 KB
testcase_09 AC 116 ms
99,748 KB
testcase_10 AC 101 ms
103,288 KB
testcase_11 AC 74 ms
75,668 KB
testcase_12 AC 73 ms
75,616 KB
testcase_13 AC 73 ms
75,640 KB
testcase_14 AC 108 ms
105,704 KB
testcase_15 AC 107 ms
105,956 KB
testcase_16 AC 109 ms
105,692 KB
testcase_17 AC 111 ms
99,724 KB
testcase_18 AC 110 ms
99,992 KB
testcase_19 AC 110 ms
99,828 KB
testcase_20 AC 109 ms
99,788 KB
testcase_21 AC 109 ms
99,720 KB
testcase_22 AC 108 ms
99,784 KB
testcase_23 AC 109 ms
99,648 KB
testcase_24 AC 110 ms
99,692 KB
testcase_25 AC 108 ms
99,800 KB
testcase_26 AC 105 ms
105,284 KB
testcase_27 AC 107 ms
105,600 KB
testcase_28 AC 109 ms
99,744 KB
権限があれば一括ダウンロードができます

ソースコード

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(4100000)
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())

N,X = nm()
A = na()
print(X-(N*X - sum(A)))
0