結果
問題 | No.1132 凸凹 |
ユーザー | 👑 tatt61880 |
提出日時 | 2020-07-27 23:46:58 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 2,163 ms |
コンパイル使用メモリ | 147,712 KB |
実行使用メモリ | 4,352 KB |
最終ジャッジ日時 | 2023-10-14 17:00:18 |
合計ジャッジ時間 | 3,444 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,352 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,352 KB |
testcase_04 | AC | 2 ms
4,348 KB |
testcase_05 | AC | 2 ms
4,348 KB |
testcase_06 | AC | 2 ms
4,348 KB |
testcase_07 | AC | 2 ms
4,352 KB |
testcase_08 | AC | 2 ms
4,352 KB |
testcase_09 | AC | 2 ms
4,348 KB |
testcase_10 | AC | 1 ms
4,348 KB |
testcase_11 | AC | 2 ms
4,348 KB |
testcase_12 | AC | 2 ms
4,348 KB |
testcase_13 | AC | 2 ms
4,348 KB |
testcase_14 | AC | 2 ms
4,352 KB |
testcase_15 | AC | 1 ms
4,348 KB |
testcase_16 | AC | 1 ms
4,348 KB |
testcase_17 | AC | 1 ms
4,352 KB |
testcase_18 | AC | 1 ms
4,348 KB |
testcase_19 | AC | 2 ms
4,348 KB |
testcase_20 | AC | 2 ms
4,348 KB |
testcase_21 | AC | 2 ms
4,348 KB |
testcase_22 | AC | 2 ms
4,352 KB |
testcase_23 | AC | 2 ms
4,348 KB |
testcase_24 | AC | 1 ms
4,352 KB |
testcase_25 | AC | 1 ms
4,352 KB |
testcase_26 | AC | 1 ms
4,348 KB |
testcase_27 | AC | 2 ms
4,348 KB |
ソースコード
func main() var a: int :: cui@inputInt() var b: int :: cui@inputInt() var c: int :: cui@inputInt() var d: int :: cui@inputInt() var p: int :: cui@inputInt() var q: int :: cui@inputInt() var max: int :: -10 ^ 10 var min: int :: 10 ^ 10 var maxX: int var minX: int for x(p, q) var val: int :: f(x, a, b, c, d) if(val < min) do min :: val do minX :: x end if if(val > max) do max :: val do maxX :: x end if end for do cui@print("\{max} \{maxX} \{min} \{minX}\n") func f(x: int, a: int, b: int, c: int, d: int): int ret a * x ^ 3 + b * x ^ 2 + c * x + d end func end func