結果
| 問題 | No.933 おまわりさんこいつです | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-21 19:43:57 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 367 bytes | 
| コンパイル時間 | 1,033 ms | 
| コンパイル使用メモリ | 65,536 KB | 
| 最終ジャッジ日時 | 2025-01-09 22:06:20 | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 WA * 3 | 
ソースコード
#include <iostream>
using lint = long long;
void solve() {
    lint ans = 1;
    int n;
    std::cin >> n;
    while (n--) {
        lint p;
        std::cin >> p;
        (ans *= p % 9) %= 9;
    }
    std::cout << (ans == 0 ? 9 : ans) << std::endl;
}
int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);
    solve();
    return 0;
}
            
            
            
        