結果
問題 |
No.3288 Sloppy Land Grading
|
ユーザー |
|
提出日時 | 2025-10-16 02:37:17 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 3,443 ms |
コンパイル使用メモリ | 275,116 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-16 02:37:24 |
合計ジャッジ時間 | 6,603 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll T; cin>>T; while(T--){ ll A,B,C,X,Y,Z; cin>>A>>B>>C>>X>>Y>>Z; cout<<min({abs(A-B)*Y+abs(A-C)*Z,abs(A-B)*X+abs(B-C)*Z,abs(A-C)*X+abs(B-C)*Y})<<"\n"; } }