結果

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

ソースコード

diff #

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