結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-11-29 21:51:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,832 KB |
最終ジャッジ日時 | 2024-11-20 21:57:33 |
合計ジャッジ時間 | 1,982 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 3 |
ソースコード
#!/usr/bin/env python3 import functools def compute(ps): m = functools.reduce(lambda x, y: x * y % 9, ps) % 9 return 9 if m == 0 else m def main(): _ = int(input()) ps = [int(p) for p in input().split()] c = compute(ps) print(c) if __name__ == "__main__": main()