結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2025-07-16 08:28:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 485 bytes |
コンパイル時間 | 4,942 ms |
コンパイル使用メモリ | 112,408 KB |
実行使用メモリ | 27,904 KB |
最終ジャッジ日時 | 2025-07-16 08:28:59 |
合計ジャッジ時間 | 4,943 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 WA * 1 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); var abc = (from _ in Enumerable.Range(0, 3) let arr = Console.ReadLine().Trim().Split(' ') select (from x in arr where long.Parse(x) % 3 != 0 select x).Count() ).ToArray(); var ans = abc[0] * abc[1] * abc[2]; Console.WriteLine(ans); } }