結果
| 問題 |
No.1934 Four Fruits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-01 13:56:32 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 567 bytes |
| コンパイル時間 | 9,134 ms |
| コンパイル使用メモリ | 168,384 KB |
| 実行使用メモリ | 187,968 KB |
| 最終ジャッジ日時 | 2024-11-14 05:17:28 |
| 合計ジャッジ時間 | 10,071 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 1 WA * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (92 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;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program
{
static void Main()
{
var abc = Console.ReadLine().Split().Select(int.Parse).ToArray();
var a = abc[0];
var b = abc[1];
var c = abc[2];
if (a == b && b == c)
{
Console.WriteLine(1);
}
else if(a == b || a == c)
{
Console.WriteLine(2);
}
else if(a != b && b != c)
{
Console.WriteLine(3);
}
}
}