結果

問題 No.740 幻の木
ユーザー pluto77
提出日時 2018-10-06 14:21:32
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 13:47:04
合計ジャッジ時間 930 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki740

n,m,p,q=map(int,raw_input().split())
a=[]
for i in xrange(p):
 a.append(m)
for i in xrange(p,p+q):
 a.append(m*2)
for i in xrange(p+q,12):
 a.append(m)

x=0
while n>0:
 n-=a[x%12]
 x+=1
print x
0