Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int a; //ile zestawow testowych
- cin>>a;
- int t[a];
- for(int i = 0; i < a; i++){
- int c,b,d;
- cin>>c>>b;
- for(int j = 0; j < c; j++){
- int h;
- cin>>h;
- d += 86400/h;}
- double ile = d/b;
- ile = ceil(ile);
- t[i] = (int)ile;}
- for(int i = 0; i < a; i++)
- cout << t[i] << "\n";
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment