結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-11-29 21:45:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 438 ms |
コンパイル使用メモリ | 55,344 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-20 21:47:02 |
合計ジャッジ時間 | 1,392 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 3 |
ソースコード
#include <iostream> #include <string> #define llint long long using namespace std; llint n; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> n; llint ans = 1, x; for(int i = 1; i <= n; i++){ cin >> x; ans *= x % 9, ans %= 9; } if(ans == 0) ans = 9; cout << ans << endl; return 0; }