Submission #2811890
Source Code Expand
#include<cstdio> #include<iostream> using namespace std; int main() { double n,m,d; cin >> n >> m >> d; if(d == 0) printf("%.10lf\n",(1/n)*(m-1)); else printf("%.10lf\n",(2*(n-d)*(m-1))/(n*n)); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Ordinary Beauty |
User | makss |
Language | C++14 (GCC 5.4.1) |
Score | 300 |
Code Size | 339 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_1000000000_180707_0.txt, sample_2_3_1.txt |
All | sample_1000000000_180707_0.txt, sample_2_3_1.txt, test_11936238_9_153932.txt, test_138666_2854897_1404.txt, test_1_2_0.txt, test_234679769_107_69508.txt, test_25213539_11160_27040.txt, test_28367_3200917_12993.txt, test_46387542_48_441879.txt, test_50484_560629_534.txt, test_569_56_8.txt, test_77_143_1.txt, test_8180059_850_58.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_1000000000_180707_0.txt | AC | 1 ms | 256 KB |
sample_2_3_1.txt | AC | 1 ms | 256 KB |
test_11936238_9_153932.txt | AC | 1 ms | 256 KB |
test_138666_2854897_1404.txt | AC | 1 ms | 256 KB |
test_1_2_0.txt | AC | 1 ms | 256 KB |
test_234679769_107_69508.txt | AC | 1 ms | 256 KB |
test_25213539_11160_27040.txt | AC | 1 ms | 256 KB |
test_28367_3200917_12993.txt | AC | 1 ms | 256 KB |
test_46387542_48_441879.txt | AC | 1 ms | 256 KB |
test_50484_560629_534.txt | AC | 1 ms | 256 KB |
test_569_56_8.txt | AC | 1 ms | 256 KB |
test_77_143_1.txt | AC | 1 ms | 256 KB |
test_8180059_850_58.txt | AC | 1 ms | 256 KB |