結果

問題 No.2057 Ising Model
ユーザー prussian_coder
提出日時 2022-08-27 18:44:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 71 bytes
コンパイル時間 480 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 53,044 KB
最終ジャッジ日時 2024-10-14 15:26:09
合計ジャッジ時間 3,700 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 40 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

N,A,B=map(int,input().split())
print(min(A*(N-1)-B*N,-A*(N-1)-B*(N%2)))
0