結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
mono_0812
|
| 提出日時 | 2021-03-31 21:55:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 760 bytes |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,032 KB |
| 最終ジャッジ日時 | 2024-12-15 18:21:12 |
| 合計ジャッジ時間 | 2,657 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 18 |
ソースコード
import bisect,collections,copy,heapq,itertools,math,string,sys,queue
from decimal import Decimal
def 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-c
li=[0]*com
if com==0:
print(0)
exit()
li[0]=d
for i in range(1,com):
x=li[i-1]
if (i+1)%10!=0:
li[i]=x
elif (i+1)%10==0 and e<=x:
li[i]=x-e
else:
li[i]=x
print(sum(li))
mono_0812