Submission #20521990


Source Code Expand

#include <iostream>
#include <cstdio>

int main(){
  double A, B;
  std::cin >> A >> B;
  std::printf("%2.10lf\n", (A-B)/A*100);
  return 0;
}

Submission Info

Submission Time
Task A - Discount
User Rachman
Language C++ (GCC 9.2.1)
Score 100
Code Size 152 Byte
Status AC
Exec Time 7 ms
Memory 3784 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_hand.txt, 05_hand.txt, 06_hand.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt
Case Name Status Exec Time Memory
01_sample.txt AC 7 ms 3780 KiB
02_sample.txt AC 3 ms 3712 KiB
03_sample.txt AC 5 ms 3576 KiB
04_hand.txt AC 2 ms 3696 KiB
05_hand.txt AC 2 ms 3772 KiB
06_hand.txt AC 2 ms 3752 KiB
07_random.txt AC 2 ms 3784 KiB
08_random.txt AC 2 ms 3688 KiB
09_random.txt AC 2 ms 3580 KiB
10_random.txt AC 3 ms 3764 KiB
11_random.txt AC 2 ms 3712 KiB
12_random.txt AC 2 ms 3692 KiB
13_random.txt AC 2 ms 3696 KiB