結果
問題 |
No.740 幻の木
|
ユーザー |
![]() |
提出日時 | 2019-08-21 08:58:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 370 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 175 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-08 00:24:06 |
合計ジャッジ時間 | 1,425 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
N,M,P,Q=map(int,input().split()) during=[] month=1 cnt=0 for i in range(Q): x=(P+i)%12 if x==0: x=12 during.append(x) while(N>0): if month in during: N-=2*M else: N-=M month+=1 if month==13: month=1 cnt+=1 print(cnt)