結果

問題 No.3433 [Cherry 8th Tune A] ADD OIL!
コンテスト
ユーザー vjudge1
提出日時 2026-02-09 01:51:39
言語 PyPy3
(7.3.17)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 360 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 442 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 54,700 KB
最終ジャッジ日時 2026-02-09 01:51:41
合計ジャッジ時間 1,971 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# t = int(input())
# n = int(input())
# a = list(map(int,input().split()))
# a,b,c = map(int,input().split())
#By Tahir Huzaifa
t = int(input().strip())
for _ in range(t):
    n,k = map(int,input().strip().split())
    a = list(map(int,input().split()))
    a.sort()

    a[0]-=k
    ans = 1
    for i in range(n):
        ans*=a[i]
    print(ans)
   


    

0