結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2022-11-03 23:34:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 1,970 ms |
コンパイル使用メモリ | 192,924 KB |
最終ジャッジ日時 | 2025-02-08 17:04:54 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int N; cin>>N; int ans = 1; for(int i=0;i<3;i++){ int count = 0; for(int j=0;j<N;j++){ int a; cin>>a; if(a%3) count++; } ans *= count; } cout<<ans<<endl; }