結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2020-06-25 14:48:39 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 578 bytes |
コンパイル時間 | 751 ms |
コンパイル使用メモリ | 102,912 KB |
実行使用メモリ | 18,048 KB |
最終ジャッジ日時 | 2024-07-03 21:29:39 |
合計ジャッジ時間 | 1,868 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 WA * 8 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;namespace _0804{class Program{static void Main(string[] args){var _ = Console.ReadLine().Split();var a = int.Parse(_[0]);var b = int.Parse(_[1]);var c = int.Parse(_[2]);var d = int.Parse(_[3]);var y = 0;for(var i = 0; i < d / (c + a); i++){if(a >= 1 && b >= c){y++;a--;b -= c;}}Console.WriteLine(y);}}}