結果

問題 No.505 カードの数式2
ユーザー aaaaa
提出日時 2017-04-21 23:25:00
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-20 17:45:32
合計ジャッジ時間 1,765 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
for i,x in enumerate(list(map(int,input().split()))):
    if x<0:x*=-1
    if i==0:s=0 if x==1 else 1
    if x>1:s*=x
    else: s+=x
print(s)
0