結果
| 問題 |
No.1446 ハンバーグと納豆ごはん
|
| コンテスト | |
| ユーザー |
teruteru053
|
| 提出日時 | 2021-03-31 14:04:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 356 bytes |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 77,760 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 18:40:03 |
| 合計ジャッジ時間 | 1,733 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<sstream>
#include<functional>
#include<algorithm>
#include<map>
#include<queue>
#include<stack>
using namespace std;
int main() {
long long a, b, n, m;
cin >> a >> b >> n >> m;
long long ans = min(a, b);
a -= ans;
b -= ans;
ans += a / (n + 1);
ans += b / (m + 1);
cout << ans << endl;
}
teruteru053