結果

問題 No.2057 Ising Model
ユーザー ntudantuda
提出日時 2022-10-01 13:40:59
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 71 bytes
コンパイル時間 675 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 71,668 KB
最終ジャッジ日時 2023-08-25 11:33:43
合計ジャッジ時間 6,982 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,612 KB
testcase_01 AC 71 ms
71,604 KB
testcase_02 AC 72 ms
71,324 KB
testcase_03 AC 74 ms
71,116 KB
testcase_04 AC 73 ms
71,360 KB
testcase_05 AC 72 ms
71,572 KB
testcase_06 AC 72 ms
71,456 KB
testcase_07 AC 71 ms
71,308 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,316 KB
testcase_10 AC 71 ms
71,364 KB
testcase_11 AC 73 ms
71,232 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 72 ms
71,392 KB
testcase_18 WA -
testcase_19 AC 71 ms
71,388 KB
testcase_20 WA -
testcase_21 AC 71 ms
71,236 KB
testcase_22 AC 72 ms
71,360 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 72 ms
71,396 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 71 ms
71,276 KB
testcase_29 AC 71 ms
71,332 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 72 ms
71,356 KB
testcase_34 AC 71 ms
71,528 KB
testcase_35 WA -
testcase_36 AC 70 ms
71,120 KB
testcase_37 WA -
testcase_38 AC 71 ms
71,260 KB
testcase_39 WA -
testcase_40 AC 70 ms
71,612 KB
testcase_41 WA -
testcase_42 AC 71 ms
71,324 KB
testcase_43 AC 72 ms
71,392 KB
testcase_44 AC 70 ms
71,264 KB
testcase_45 WA -
testcase_46 AC 71 ms
71,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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