結果
| 問題 |
No.1828 Except 3
|
| ユーザー |
kou_kkk
|
| 提出日時 | 2025-07-16 09:01:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 503 bytes |
| コンパイル時間 | 1,370 ms |
| コンパイル使用メモリ | 115,096 KB |
| 実行使用メモリ | 28,156 KB |
| 最終ジャッジ日時 | 2025-07-16 09:01:24 |
| 合計ジャッジ時間 | 3,382 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
コンパイルメッセージ
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 = (long)abc[0] * (long)abc[1] * (long)abc[2];
Console.WriteLine(ans);
}
}
kou_kkk