結果

問題 No.1446 ハンバーグと納豆ごはん
ユーザー heaveneleven521heaveneleven521
提出日時 2021-03-31 14:06:10
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 1,373 ms
コンパイル使用メモリ 165,532 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-08 13:59:50
合計ジャッジ時間 3,924 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
6,940 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 2 ms
6,944 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
6,944 KB
testcase_15 AC 2 ms
6,944 KB
testcase_16 WA -
testcase_17 AC 1 ms
6,940 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 2 ms
6,944 KB
testcase_21 AC 2 ms
6,944 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 2 ms
6,940 KB
testcase_25 RE -
testcase_26 AC 2 ms
6,944 KB
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 WA -
testcase_32 WA -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int a,b,n,m;
 cin >> a >> b >> n >> m;
 if(a>b){
 cout << b+a/n << endl;
 }
 else{
 cout << a+b/m << endl;
 }
}
0