結果
問題 | No.1453 手助け |
ユーザー |
![]() |
提出日時 | 2021-03-31 22:20:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 766 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,904 KB |
最終ジャッジ日時 | 2024-12-15 19:38:12 |
合計ジャッジ時間 | 2,282 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import bisect,collections,copy,heapq,itertools,math,string,sys,queuefrom decimal import Decimaldef I(): return input()def IS(): return input().split()def II(): return int(input())def IIS(): return map(int,input().split())def LIIS(): return list(map(int,input().split()))def ZER(N): return [False for _ in range(N)]INF=float("inf")MOD=10**9+7# V# / ̄ψ ̄\# | 合格祈願 |# |_____|##############################################################################a,b,c,d,e=IIS()com=b-cli=[0]*(com*a)if com==0:print(0)exit()li[0]=dfor i in range(1,com*a):x=li[i-1]if (i+1)%10!=0:li[i]=xelif (i+1)%10==0 and e<=x:li[i]=x-eelse:li[i]=xprint(sum(li))