結果

問題 No.933 おまわりさんこいつです
ユーザー sho_00sho_00
提出日時 2020-04-08 15:44:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 20,556 KB
最終ジャッジ日時 2023-09-25 17:25:37
合計ジャッジ時間 2,238 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,884 KB
testcase_01 AC 15 ms
7,792 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 15 ms
7,784 KB
testcase_04 AC 15 ms
7,828 KB
testcase_05 AC 15 ms
7,932 KB
testcase_06 AC 16 ms
7,924 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 16 ms
7,868 KB
testcase_09 AC 16 ms
7,836 KB
testcase_10 AC 16 ms
7,812 KB
testcase_11 AC 15 ms
7,812 KB
testcase_12 AC 16 ms
7,868 KB
testcase_13 AC 17 ms
8,156 KB
testcase_14 AC 19 ms
8,652 KB
testcase_15 AC 21 ms
9,064 KB
testcase_16 AC 37 ms
11,488 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 66 ms
9,996 KB
testcase_21 AC 16 ms
7,752 KB
testcase_22 AC 15 ms
7,836 KB
testcase_23 AC 90 ms
20,556 KB
testcase_24 AC 82 ms
20,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
tmp=1
for i in range(n):
  tmp*=(a[i])%9 if a[i]%9!=0 else 9
  if tmp%9!=0:
    tmp%=9
  else:
    tmp=9  
print(tmp)
0