結果

問題 No.1828 Except 3
ユーザー 👑 CleyL
提出日時 2022-02-01 22:44:31
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 63,104 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 09:15:12
合計ジャッジ時間 1,255 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int n;cin>>n;
    long long ans = 1;
    long long t = 0;
    for(int z = 0; 3 > z; z++){
        for(int i = 0; n > i; i++){
            int x;cin>>x;
            if(x%3)t++;
        }
        ans *= t;
        t = 0;
    }
    cout << ans << endl;

    
}
0