結果
| 問題 |
No.933 おまわりさんこいつです
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-30 10:39:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 689 ms |
| コンパイル使用メモリ | 63,104 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 01:04:50 |
| 合計ジャッジ時間 | 1,831 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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==0 ? 9 : p*x%9;
}
cout << p << endl;
return 0;
}