結果
| 問題 |
No.1048 Zero (Advanced)
|
| コンテスト | |
| ユーザー |
le_panda_noir
|
| 提出日時 | 2020-05-30 20:55:51 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 969 ms |
| コンパイル使用メモリ | 66,816 KB |
| 最終ジャッジ日時 | 2025-01-10 19:42:18 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 |
ソースコード
#include <iostream>
using namespace std;
using ll = long long;
void ins() {}
template<class T,class... Rest>void ins(T& v,Rest&... rest){cin>>v;ins(rest...);}
const string yes = "Yes", no = "No";
int main() {
ll L, R, M, K;
ins(L, R, M, K);
if (M * (R / M) > L) {
cout << yes << "\n";
return 0;
}
if (K == 0 || L == 0) {
cout << yes << "\n";
return 0;
}
cout << (M * (R * K / M) >= L * K ? yes : no) << "\n";
return 0;
}
le_panda_noir