結果
問題 | No.1446 ハンバーグと納豆ごはん |
ユーザー |
![]() |
提出日時 | 2021-07-11 05:48:46 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 02:58:21 |
合計ジャッジ時間 | 1,182 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
#include<stdio.h>int main(){long long int a, b, n, m;scanf("%lld %lld %lld %lld", &a, &b, &n, &m);if (a < b)printf("%lld\n", a + (b - a) / (m + 1));elseprintf("%lld\n", b + (a - b) / (n + 1));return 0;}