Submission #3235242
Source Code Expand
#include <cstdio> #include <algorithm> #include <cstring> using namespace std; typedef long long lli; int main() { lli n,m,d; scanf("%lld%lld%lld",&n,&m,&d); printf("%.10lf\n",(d==0 ? 1.0 : 2.0)*(n-d)/(n*n)*(m-1)); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Ordinary Beauty |
User | vjudge3 |
Language | C++14 (GCC 5.4.1) |
Score | 300 |
Code Size | 233 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:10:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld%lld",&n,&m,&d); ^
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 | 128 KB |
sample_2_3_1.txt | AC | 1 ms | 128 KB |
test_11936238_9_153932.txt | AC | 1 ms | 128 KB |
test_138666_2854897_1404.txt | AC | 1 ms | 128 KB |
test_1_2_0.txt | AC | 1 ms | 128 KB |
test_234679769_107_69508.txt | AC | 1 ms | 128 KB |
test_25213539_11160_27040.txt | AC | 1 ms | 128 KB |
test_28367_3200917_12993.txt | AC | 1 ms | 128 KB |
test_46387542_48_441879.txt | AC | 1 ms | 128 KB |
test_50484_560629_534.txt | AC | 1 ms | 128 KB |
test_569_56_8.txt | AC | 1 ms | 128 KB |
test_77_143_1.txt | AC | 1 ms | 128 KB |
test_8180059_850_58.txt | AC | 1 ms | 128 KB |