結果

問題 No.2057 Ising Model
ユーザー flygonflygon
提出日時 2022-09-19 16:07:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 87 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 53,348 KB
最終ジャッジ日時 2024-12-22 02:30:29
合計ジャッジ時間 3,570 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 40 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

n,a,b = map(int,input().split())
x = a*(n-1)-b*n
y = -a*(n-1) - b*(n%2)
print(min(x,y))
0