Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Dejalo a la Suerte
//g++ 5.4.0 #include <iostream> using namespace std; int main() { int casos; double k,n,n2,div,res; cin>>casos; while(casos--){ n2=1; cin>>n>>k; for(int i=0;i<n;i++){ n2=n2*2; } div=n2-2*n-2; //cout<<div<<"\n"; res=k/div; printf("%.5lf\n",res*1000000000000000); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
test
Radix sort
Web Browser History - LIST
replace-30-Seconds-of-C++
single_digit
Counting top students
¡Arriba, Papalotes, Arriba!
Python Like C++ Overload Function Template
articulation points (http://codeforces.com/contest/732/problem/F)
bharat
Please log in to post a comment.