You are viewing a single comment's thread. Return to all comments →
Working C++ Code
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { double l,s1,s2; cin>>l>>s1>>s2; int q;cin>>q; do{ double area; cin>>area; if(area<=l*l) { cout<<(sqrt(2)*((double)l-sqrt(area)))/abs(s1-s2)<<endl; } else cout<<0<<endl; q--; }while(q!=0); }
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Moving Tiles
You are viewing a single comment's thread. Return to all comments →
Working C++ Code