結果
| 問題 |
No.2057 Ising Model
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-09-01 15:26:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 153 bytes |
| コンパイル時間 | 667 ms |
| コンパイル使用メモリ | 82,268 KB |
| 実行使用メモリ | 53,912 KB |
| 最終ジャッジ日時 | 2024-11-14 06:36:22 |
| 合計ジャッジ時間 | 3,237 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
ソースコード
import sys input=lambda:sys.stdin.readline().rstrip() N,A,B=map(int,input().split()) print(min([A*(N-1-2*i)-B*(N-2*((i+1)//2)) for i in [0,1,N-1,N-2]]))
ytft