結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-12-02 02:39:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 1,538 ms |
コンパイル使用メモリ | 165,628 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-22 04:39:03 |
合計ジャッジ時間 | 2,708 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 4 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int N; cin >> N; ll P[N]; for (int i = 0; i < N; i++) { cin >> P[i]; } ll k = 1; for (int i = 0; i < N; i++) { if (P[i] % 9 == 0) { cout << "9\n"; return 0; } k *= P[i]; k %= 9; } cout << k << "\n"; return 0; }