結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-29 22:15:32 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| 記録 | |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 37,888 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-08 05:18:28 |
| 合計ジャッジ時間 | 2,728 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 17 |
ソースコード
#include <cstdint>
#include <cstdio>
using namespace std;
using i64 = int64_t;
int main(void) {
int N; scanf("%d", &N);
i64 res = 1;
for(int i=0; i<N; ++i) {
i64 pi; scanf("%ld", &pi);
res *= pi % 9;
res %= 9;
}
printf("%ld\n", res);
return 0;
}