結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2020-02-25 00:43:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 1,966 ms |
コンパイル使用メモリ | 192,216 KB |
最終ジャッジ日時 | 2025-01-09 02:06:45 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n, ans = 1; cin >> n; for (int i = 0; i < n; i++) { int64_t p; cin >> p; if (p == 0) { cout << 0 << endl; return 0; } (ans *= p) %= 9; } if (ans == 0) ans = 9; cout << ans << endl; }