結果
| 問題 | No.920 あかあお |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-04 13:04:14 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 474 bytes |
| 記録 | |
| コンパイル時間 | 8,316 ms |
| コンパイル使用メモリ | 169,140 KB |
| 実行使用メモリ | 186,312 KB |
| 最終ジャッジ日時 | 2025-12-04 13:04:31 |
| 合計ジャッジ時間 | 10,329 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 3 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (106 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] input = Console.ReadLine()!.Split(' ');
int red = int.Parse(input[0]);
int blue = int.Parse(input[1]);
int white = int.Parse(input[2]);
if (red > blue)
{
int tmp = red;
red = blue;
blue = tmp;
}
int num = blue - red;
int ans = white - num;
Console.WriteLine(ans / 2 + num + red);
}
}