結果
問題 | No.2850 Make Slimes |
ユーザー |
|
提出日時 | 2024-05-09 22:35:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 2,020 ms |
コンパイル使用メモリ | 192,408 KB |
最終ジャッジ日時 | 2025-02-21 12:05:01 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);int a, b, c, d;cin >> a >> b >> c >> d;int ans = 0;while(c >= a && d >= b){c -= a;d -= b;ans++;}cout << ans << "\n";}