結果
| 問題 | No.3433 [Cherry 8th Tune A] ADD OIL! |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-01-23 21:26:20 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| + 94µs | |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 681 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-20 15:00:19 |
| 合計ジャッジ時間 | 3,383 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
N,K=list(map(int,input().split()))
A=list(map(int,input().split()))
ANS=1<<63
for i in range(N):
score=1
for j in range(N):
if i==j:
score*=A[j]-K
else:
score*=A[j]
ANS=min(ANS,score)
print(ANS)
titia