結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-25 13:04:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 97 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-12-06 14:46:34 |
| 合計ジャッジ時間 | 1,533 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
def main():
i = input()
lst = i.split(' ')
A, B, C, D = int(lst[0]), int(lst[1]), int(lst[2]), int(lst[3])
count = 0
while A >= 1 and B >= C and D >= C+1:
A -= 1
B -= C
D -= C + 1
count += 1
# print('A: {}, B: {}, D: {}'.format(A, B, D))
print(count)
if __name__ == '__main__':
main()