結果
| 問題 | No.933 おまわりさんこいつです | 
| コンテスト | |
| ユーザー |  rieaaddlreiuu | 
| 提出日時 | 2022-11-09 22:38:26 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 294 bytes | 
| コンパイル時間 | 1,590 ms | 
| コンパイル使用メモリ | 167,252 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-23 03:35:40 | 
| 合計ジャッジ時間 | 2,619 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 WA * 3 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    scanf("%d",&N);
    long temp;
    int ans = 1;
    for(int i=0;i<N;i++){
        scanf("%ld",&temp);
        ans *= temp % 9;
        ans = ans % 9;
    }
    if(ans == 0){
        ans = 9;
    }
    printf("%d",ans);
}
            
            
            
        