結果
問題 |
No.112 ややこしい鶴亀算
|
ユーザー |
![]() |
提出日時 | 2025-04-01 17:00:03 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 7,457 ms |
コンパイル使用メモリ | 168,836 KB |
実行使用メモリ | 186,336 KB |
最終ジャッジ日時 | 2025-04-01 17:00:13 |
合計ジャッジ時間 | 9,748 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 13 WA * 10 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (107 ミリ秒)。 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((n - turtle) + " " + turtle); } }