結果
| 問題 | No.740 幻の木 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-06 14:32:12 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| + 939µs | |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 81,588 KB |
| 実行使用メモリ | 81,920 KB |
| 最終ジャッジ日時 | 2026-07-18 18:31:37 |
| 合計ジャッジ時間 | 1,677 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
#yuki740 n,m,p,q=map(int,raw_input().split()) a=[] for i in xrange(1,13): if p<=i and i<=p+q-1: a.append(m*2) else: a.append(m) x=0 while n>0: n-=a[x%12] x+=1 print x