結果

問題 No.2850 Make Slimes
ユーザー InTheBloom
提出日時 2024-08-25 13:31:13
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 395 bytes
コンパイル時間 4,756 ms
コンパイル使用メモリ 172,004 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-25 13:31:20
合計ジャッジ時間 4,741 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;

void main () {
    int A, B, C, D; readln.read(A, B, C, D);

    int ans = 0;
    foreach (i; 0..1000) {
        if (i * A <= C && i * B <= D) ans = i;
    }

    writeln(ans);
}

void read (T...) (string S, ref T args) {
    import std.conv : to;
    import std.array : split;
    auto buf = S.split;
    foreach (i, ref arg; args) {
        arg = buf[i].to!(typeof(arg));
    }
}
0