結果
| 問題 | No.427 テレビ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-05 15:28:19 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| + 982µs | |
| コード長 | 675 bytes |
| 記録 | |
| コンパイル時間 | 5,211 ms |
| コンパイル使用メモリ | 169,656 KB |
| 実行使用メモリ | 192,184 KB |
| 最終ジャッジ日時 | 2026-07-16 08:12:56 |
| 合計ジャッジ時間 | 6,382 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (97 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] inputNum = Console.ReadLine()!.Split(' ');
decimal leftNum = decimal.Parse(inputNum[0]);
decimal lightNum = decimal.Parse(inputNum[1]);
if (leftNum % 3 == 0 && leftNum % 3 == 0)
{
if (lightNum > leftNum)
{
Console.WriteLine("YOKO");
}
else
{
Console.WriteLine("TATE");
}
}
else if (leftNum % 3 == 0)
{
Console.WriteLine("YOKO");
}
else
{
Console.WriteLine("TATE");
}
}
}