結果
| 問題 |
No.1517 Party Location
|
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2021-05-05 01:25:54 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 119 ms / 2,000 ms |
| コード長 | 276 bytes |
| コンパイル時間 | 2,370 ms |
| コンパイル使用メモリ | 74,544 KB |
| 実行使用メモリ | 41,592 KB |
| 最終ジャッジ日時 | 2024-06-11 10:47:27 |
| 合計ジャッジ時間 | 3,982 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
class Main {
public static void main(String[] args){
var sc = new java.util.Scanner(System.in);
int d = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int x = a < b ? d : 0;
int ans = x * a + (d - x) * b;
System.out.println(ans);
}
}
遭難者