結果
| 問題 |
No.2621 Fee Schedule
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-03 23:23:53 |
| 言語 | Bash (Bash 5.2.21) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 150 bytes |
| コンパイル時間 | 409 ms |
| コンパイル使用メモリ | 7,208 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 17:15:49 |
| 合計ジャッジ時間 | 652 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
#!/bin/bash
read row
input=($row)
a=${input[0]}
b=${input[1]}
c=${input[2]}
if [ $((a*c)) -gt ${b} ]; then
echo ${b}
else
echo $((a*c))
fi