結果

問題 No.933 おまわりさんこいつです
ユーザー NOSS
提出日時 2019-11-29 22:07:54
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 339 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 68,436 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-20 22:21:14
合計ジャッジ時間 1,737 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

using ll = long long int;

int main() {
    ll n, ans = 1;
    cin >> n;
    for(int i=0;i<n;i++){
        ll a;
        cin >> a;
        ans *= a;
        ans %= 9;
    }
    if(ans == 0) ans = 9;
    cout << ans << endl;
    return 0;
}
0