結果

問題 No.2057 Ising Model
ユーザー 👑 H20H20
提出日時 2022-08-26 22:17:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 66,304 KB
最終ジャッジ日時 2024-04-22 00:23:01
合計ジャッジ時間 3,712 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
65,408 KB
testcase_01 AC 52 ms
65,792 KB
testcase_02 AC 50 ms
65,920 KB
testcase_03 AC 50 ms
65,792 KB
testcase_04 AC 49 ms
65,920 KB
testcase_05 AC 49 ms
65,536 KB
testcase_06 AC 50 ms
65,536 KB
testcase_07 AC 55 ms
66,304 KB
testcase_08 AC 49 ms
65,792 KB
testcase_09 AC 49 ms
65,920 KB
testcase_10 AC 51 ms
66,304 KB
testcase_11 AC 49 ms
65,792 KB
testcase_12 WA -
testcase_13 AC 48 ms
65,792 KB
testcase_14 AC 49 ms
66,188 KB
testcase_15 AC 48 ms
66,048 KB
testcase_16 AC 50 ms
65,792 KB
testcase_17 AC 50 ms
65,792 KB
testcase_18 AC 49 ms
65,920 KB
testcase_19 AC 52 ms
65,920 KB
testcase_20 AC 54 ms
65,536 KB
testcase_21 AC 54 ms
65,444 KB
testcase_22 AC 54 ms
65,536 KB
testcase_23 WA -
testcase_24 AC 48 ms
65,536 KB
testcase_25 AC 52 ms
65,920 KB
testcase_26 AC 49 ms
65,536 KB
testcase_27 WA -
testcase_28 AC 49 ms
65,792 KB
testcase_29 AC 50 ms
65,920 KB
testcase_30 AC 50 ms
65,536 KB
testcase_31 AC 49 ms
65,536 KB
testcase_32 AC 51 ms
65,536 KB
testcase_33 AC 51 ms
65,536 KB
testcase_34 AC 55 ms
65,792 KB
testcase_35 AC 56 ms
66,304 KB
testcase_36 AC 54 ms
65,792 KB
testcase_37 AC 54 ms
65,536 KB
testcase_38 AC 51 ms
65,792 KB
testcase_39 AC 48 ms
65,664 KB
testcase_40 AC 51 ms
65,792 KB
testcase_41 AC 49 ms
65,536 KB
testcase_42 AC 49 ms
65,536 KB
testcase_43 AC 49 ms
65,624 KB
testcase_44 AC 49 ms
65,920 KB
testcase_45 WA -
testcase_46 AC 49 ms
66,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from cmd import PROMPT


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