結果
| 問題 |
No.112 ややこしい鶴亀算
|
| ユーザー |
Maeda
|
| 提出日時 | 2025-04-01 16:58:49 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 407 bytes |
| コンパイル時間 | 16,206 ms |
| コンパイル使用メモリ | 171,504 KB |
| 実行使用メモリ | 187,364 KB |
| 最終ジャッジ日時 | 2025-04-01 16:59:08 |
| 合計ジャッジ時間 | 18,515 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (126 ミリ秒)。 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)
{
int n = int.Parse(Console.ReadLine());
string[] str = Console.ReadLine().Split(' ');
int turtle = 0;
for (int i = 0; i < str.Length; i++)
{
if (int.Parse(str[i])%4 == 0)
{
turtle++;
}
}
Console.WriteLine(turtle + " " + (n - turtle));
}
}
Maeda