結果

問題 No.2057 Ising Model
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-10-10 19:05:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 73,112 KB
最終ジャッジ日時 2023-09-06 18:41:50
合計ジャッジ時間 6,961 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
72,752 KB
testcase_01 AC 100 ms
72,840 KB
testcase_02 AC 98 ms
72,864 KB
testcase_03 AC 98 ms
73,108 KB
testcase_04 AC 99 ms
72,984 KB
testcase_05 AC 99 ms
72,840 KB
testcase_06 AC 101 ms
72,632 KB
testcase_07 AC 101 ms
72,856 KB
testcase_08 AC 97 ms
72,840 KB
testcase_09 AC 102 ms
72,984 KB
testcase_10 AC 104 ms
72,952 KB
testcase_11 AC 104 ms
73,104 KB
testcase_12 WA -
testcase_13 AC 101 ms
72,676 KB
testcase_14 AC 103 ms
72,868 KB
testcase_15 AC 102 ms
72,816 KB
testcase_16 AC 101 ms
72,996 KB
testcase_17 AC 102 ms
72,728 KB
testcase_18 AC 105 ms
73,044 KB
testcase_19 AC 109 ms
72,988 KB
testcase_20 AC 104 ms
72,888 KB
testcase_21 AC 100 ms
73,048 KB
testcase_22 AC 102 ms
72,992 KB
testcase_23 WA -
testcase_24 AC 102 ms
72,676 KB
testcase_25 AC 99 ms
72,920 KB
testcase_26 AC 99 ms
73,080 KB
testcase_27 WA -
testcase_28 AC 100 ms
72,828 KB
testcase_29 AC 99 ms
72,756 KB
testcase_30 AC 99 ms
72,948 KB
testcase_31 AC 98 ms
72,988 KB
testcase_32 AC 101 ms
72,944 KB
testcase_33 AC 100 ms
72,908 KB
testcase_34 AC 103 ms
73,068 KB
testcase_35 AC 101 ms
72,748 KB
testcase_36 AC 100 ms
72,676 KB
testcase_37 AC 102 ms
72,856 KB
testcase_38 AC 103 ms
73,000 KB
testcase_39 AC 102 ms
72,640 KB
testcase_40 AC 103 ms
72,932 KB
testcase_41 AC 106 ms
72,744 KB
testcase_42 AC 105 ms
72,888 KB
testcase_43 AC 104 ms
72,988 KB
testcase_44 AC 107 ms
73,004 KB
testcase_45 WA -
testcase_46 AC 103 ms
72,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import *
from itertools import *
from functools import *
import math,sys
input = sys.stdin.readline


N,A,B = map(int,input().split())
X = (A-B)*N - A
if N%2==0:
    Y = -A*(N-1)
else:
    Y = -A*(N-1)-B

print(min(X,Y))
0