結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2019-11-30 10:41:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 64,468 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 01:04:54 |
合計ジャッジ時間 | 1,671 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 3 |
ソースコード
#include<iostream> using namespace std; typedef long long ll; int main(){ int n; cin >> n; ll p = 1; for(int i = 0; i < n; i++){ ll x; cin >> x; p = p*x%9; } cout << (p%9==0 ? 9 : p) << endl; return 0; }