結果

問題 No.1828 Except 3
ユーザー atjh16
提出日時 2022-02-02 20:22:29
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 2,226 ms
コンパイル使用メモリ 190,908 KB
最終ジャッジ日時 2025-01-27 18:24:35
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int n, t;
long long a[3];

int main()
{	
	cin >> n;

	for (int j = 0; j < 3; j++) {
		for (int i = 0; i < n; i++) {
			cin >> t;

			if (t % 3 != 0)
				a[j]++;
		}
	}
	
	cout << a[0] * a[1] * a[2] << endl;
}
0