السابق التالي
0 / 10
الوحدة النمطية DEMO-33-64DEMO-OOP-33

Build Queue Dashboard

DEMO-OOP-33 • Object Oriented Programming

Browser-only practice

بيان المشكلة

Create Main.java and BuildDashboard.java. Read build information and print a dashboard summary for the branch.

تنسيق الإدخال

Input is given as whitespace-separated tokens in this order:

  1. branch name
  2. total tests
  3. passed tests

تنسيق الإخراج

Print the exact report in this order:

  1. Branch
  2. Failed
  3. Pass Rate

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
main
20
18
Branch: main
Failed: 2
Pass Rate: 90.00
Input: branch name = "main", total tests = 20, passed tests = 18.
Key calculation(s): failed = 20 - 18 | rate = (18 * 100.0) / 20 | "Branch: " + "main" = "Branch: main".
Output:
Branch: main
Failed: 2
Pass Rate: 90.00
العينة رقم 2
عينة ظاهرة
featureX
10
10
Branch: featureX
Failed: 0
Pass Rate: 100.00
Input: branch name = "featureX", total tests = 10, passed tests = 10.
Key calculation(s): failed = 10 - 10 | rate = (10 * 100.0) / 10 | "Branch: " + "featureX" = "Branch: featureX".
Output:
Branch: featureX
Failed: 0
Pass Rate: 100.00

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر