結果

問題 No.2057 Ising Model
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-10-10 19:03:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 73,372 KB
最終ジャッジ日時 2023-09-06 18:23:51
合計ジャッジ時間 7,839 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
72,972 KB
testcase_01 AC 103 ms
72,672 KB
testcase_02 AC 99 ms
72,744 KB
testcase_03 AC 101 ms
72,864 KB
testcase_04 AC 100 ms
72,956 KB
testcase_05 AC 102 ms
72,948 KB
testcase_06 AC 103 ms
72,796 KB
testcase_07 AC 105 ms
72,936 KB
testcase_08 AC 103 ms
72,548 KB
testcase_09 AC 102 ms
72,888 KB
testcase_10 AC 101 ms
72,804 KB
testcase_11 AC 101 ms
72,972 KB
testcase_12 WA -
testcase_13 AC 105 ms
73,032 KB
testcase_14 AC 106 ms
72,972 KB
testcase_15 AC 104 ms
72,976 KB
testcase_16 AC 106 ms
72,552 KB
testcase_17 AC 105 ms
72,912 KB
testcase_18 AC 105 ms
72,848 KB
testcase_19 AC 106 ms
73,016 KB
testcase_20 WA -
testcase_21 AC 104 ms
72,844 KB
testcase_22 AC 102 ms
72,932 KB
testcase_23 WA -
testcase_24 AC 103 ms
72,644 KB
testcase_25 AC 103 ms
72,596 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 103 ms
72,552 KB
testcase_29 AC 103 ms
73,036 KB
testcase_30 AC 102 ms
72,976 KB
testcase_31 AC 103 ms
72,744 KB
testcase_32 AC 103 ms
72,804 KB
testcase_33 AC 102 ms
72,772 KB
testcase_34 AC 103 ms
72,944 KB
testcase_35 WA -
testcase_36 AC 101 ms
72,888 KB
testcase_37 AC 101 ms
72,924 KB
testcase_38 AC 101 ms
72,884 KB
testcase_39 AC 108 ms
72,656 KB
testcase_40 AC 102 ms
72,588 KB
testcase_41 WA -
testcase_42 AC 100 ms
72,804 KB
testcase_43 AC 102 ms
72,752 KB
testcase_44 AC 100 ms
72,848 KB
testcase_45 WA -
testcase_46 AC 102 ms
72,748 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())
if A < B:
    print((A-B)*N - A)
    exit()

if N%2==0:
    print(-A*(N-1))
else:
    print(-A*(N-1)-B)
0