結果
| 問題 |
No.740 幻の木
|
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-10-05 21:29:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 1,253 ms |
| コンパイル使用メモリ | 158,028 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 12:50:26 |
| 合計ジャッジ時間 | 1,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,m,p,q;
cin>>n>>m>>p>>q;
int ans=0,month=2;
while(n>0){
ans++;
if(month>=p&&month<=p+q){
n-=2*m;
}else{
n-=m;
}
month++;
if(month==13)month=1;
}
cout << ans << endl;
return 0;
}
xuelei