結果

問題 No.1389 Clumsy Calculation
ユーザー mesame3993mesame3993
提出日時 2021-10-30 03:23:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 107,420 KB
最終ジャッジ日時 2024-04-16 16:08:33
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
51,584 KB
testcase_01 AC 42 ms
51,968 KB
testcase_02 AC 39 ms
51,584 KB
testcase_03 AC 48 ms
59,392 KB
testcase_04 AC 44 ms
59,776 KB
testcase_05 AC 44 ms
60,160 KB
testcase_06 AC 45 ms
59,264 KB
testcase_07 AC 45 ms
60,032 KB
testcase_08 AC 38 ms
51,584 KB
testcase_09 AC 98 ms
102,616 KB
testcase_10 AC 73 ms
96,000 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 85 ms
104,192 KB
testcase_15 AC 83 ms
104,064 KB
testcase_16 AC 84 ms
104,576 KB
testcase_17 AC 91 ms
107,392 KB
testcase_18 AC 91 ms
107,264 KB
testcase_19 AC 90 ms
107,420 KB
testcase_20 AC 91 ms
107,008 KB
testcase_21 AC 93 ms
107,172 KB
testcase_22 AC 90 ms
106,880 KB
testcase_23 AC 91 ms
107,136 KB
testcase_24 AC 91 ms
106,880 KB
testcase_25 AC 92 ms
107,136 KB
testcase_26 WA -
testcase_27 AC 85 ms
103,808 KB
testcase_28 AC 92 ms
107,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
s = list(map(int, input().split()))
t = sum(s)
for i in range(n):
  tmp = (t - s[i]//2) // (n-1)
  if tmp == x:
    print(s[i] // 2)
    exit()
0