結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2022-02-09 17:08:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 1,995 ms |
コンパイル使用メモリ | 165,396 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 21:13:46 |
合計ジャッジ時間 | 2,216 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ int a,N,input; long long ans=1; cin>>N; for(int i=0;i<3;++i){ a=0; for(int j=0;j<N;++j){ cin>>input; a+=(input%3!=0); } ans*=a; } cout<<ans<<endl; }