結果

問題 No.1828 Except 3
ユーザー yudedakoyudedako
提出日時 2022-02-17 20:01:17
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,110 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 13,169 ms
コンパイル使用メモリ 258,496 KB
実行使用メモリ 62,480 KB
最終ジャッジ日時 2023-09-11 17:50:00
合計ジャッジ時間 34,385 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 979 ms
62,480 KB
testcase_01 AC 1,110 ms
62,428 KB
testcase_02 AC 928 ms
62,236 KB
testcase_03 AC 938 ms
61,956 KB
testcase_04 AC 938 ms
61,972 KB
testcase_05 AC 932 ms
61,992 KB
testcase_06 AC 941 ms
62,172 KB
testcase_07 AC 934 ms
62,072 KB
testcase_08 AC 940 ms
62,032 KB
testcase_09 AC 982 ms
61,980 KB
testcase_10 AC 945 ms
62,116 KB
testcase_11 AC 939 ms
62,268 KB
testcase_12 AC 950 ms
62,056 KB
testcase_13 AC 965 ms
61,704 KB
testcase_14 AC 959 ms
62,068 KB
testcase_15 AC 989 ms
61,856 KB
testcase_16 AC 964 ms
61,924 KB
testcase_17 AC 954 ms
61,668 KB
testcase_18 AC 945 ms
62,060 KB
testcase_19 AC 931 ms
61,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.collection.mutable
import scala.io.StdIn.*
import scala.util.chaining.*
import scala.math.*


@main def main =
  val n = readLine.toInt
  val a = readLine.split(' ').map(_.toInt)
  val b = readLine.split(' ').map(_.toInt)
  val c = readLine.split(' ').map(_.toInt)
  val result = a.count(_ % 3 != 0).toLong * b.count(_ % 3 != 0).toLong * c.count(_ % 3 != 0)
  println(result)
0