結果
問題 |
No.740 幻の木
|
ユーザー |
![]() |
提出日時 | 2019-02-18 15:10:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 705 ms |
コンパイル使用メモリ | 54,168 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-06 10:18:13 |
合計ジャッジ時間 | 1,324 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 6 |
ソースコード
#include <iostream> int main() { int N, M, P, Q; std::cin >> N >> M >> P >> Q; int now = 0; int blow = 0; while(N > 0) { now++; N-=M; if((now % 12) + 1 == P) { blow = Q; } if(Q > 0) { Q--; N-=M; } } return 0; }