結果
問題 | No.2208 Linear Function |
ユーザー |
👑 ![]() |
提出日時 | 2023-03-08 18:41:09 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 597 bytes |
コンパイル時間 | 12,215 ms |
コンパイル使用メモリ | 165,020 KB |
実行使用メモリ | 183,068 KB |
最終ジャッジ日時 | 2024-09-18 02:38:02 |
合計ジャッジ時間 | 8,710 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (81 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;using System.Linq;class Program{static void Main(string[] args){// Commentint T = int.Parse(Console.ReadLine());for (int lp = 0 ; lp < T ; lp++){int[] li = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();int L = li[0];int R = li[1];int A = li[2];int B = li[3];int ans;if ( A*L+B > A*R+B ){ans = A*L+B;}else{ans = A*R+B;}Console.WriteLine(ans);}}}