結果
問題 |
No.2057 Ising Model
|
ユーザー |
![]() |
提出日時 | 2022-08-26 21:37:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 745 bytes |
コンパイル時間 | 4,556 ms |
コンパイル使用メモリ | 228,412 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-13 22:04:51 |
合計ジャッジ時間 | 5,064 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 WA * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; #define rep(i, n) for (int i = 0; i < (long long)(n); i++) #define REP(i, n) for (int i = 1; i < (long long)(n); i++) typedef long long ll; //#pragma GCC target("avx512f") //#pragma GCC optimize("Ofast") //#pragma GCC optimize("unroll-loops") #define updiv(N,X) (N + X - 1) / X #define l(n) n.begin(),n.end() #define YesNo(Q) Q==1?cout<<"Yes":cout<<"No" using P = pair<int, int>; using mint = modint998244353; const int MOD = 998244353LL; const ll INF = 999999999999LL; ll dvt(ll a,ll b){ ll res=0;ll aa=a; while(b<=aa){aa /= 2;res++;} return res; } int main() { ll a,b,c;cin>>a>>b>>c;cout << min((-1)*(a-1)*b-c,(a-1)*b-a*c) << endl; }