結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2025-07-16 08:17:20 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 484 bytes |
コンパイル時間 | 3,502 ms |
コンパイル使用メモリ | 112,900 KB |
実行使用メモリ | 28,180 KB |
最終ジャッジ日時 | 2025-07-16 08:17:27 |
合計ジャッジ時間 | 5,637 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 int.Parse(x) % 3 != 0 select x).Count() ).ToArray(); var ans = abc[0] * abc[1] * abc[2]; Console.WriteLine(ans); } }