結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2020-04-21 19:43:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 795 ms |
コンパイル使用メモリ | 67,080 KB |
最終ジャッジ日時 | 2025-01-09 22:06:15 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 17 |
ソースコード
#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 << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }