結果
| 問題 |
No.1828 Except 3
|
| ユーザー |
kou_kkk
|
| 提出日時 | 2025-07-16 08:52:07 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 486 bytes |
| コンパイル時間 | 5,150 ms |
| コンパイル使用メモリ | 112,664 KB |
| 実行使用メモリ | 28,032 KB |
| 最終ジャッジ日時 | 2025-07-16 08:52:14 |
| 合計ジャッジ時間 | 2,452 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
long ans = abc[0] * abc[1] * abc[2];
Console.WriteLine(ans);
}
}
kou_kkk