added some comments
parent
86340027e0
commit
67a2d55486
|
@ -1,5 +1,6 @@
|
||||||
//problem link
|
//problem link
|
||||||
//https://cses.fi/problemset/task/1158/
|
//https://cses.fi/problemset/task/1158/
|
||||||
|
//time complexity:O(n^2)
|
||||||
#include<bits/stdc++.h>
|
#include<bits/stdc++.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -44,4 +45,10 @@ int main()
|
||||||
solve();
|
solve();
|
||||||
cout<<"\n";
|
cout<<"\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//sample input
|
||||||
|
// 4 10
|
||||||
|
// 4 8 5 3
|
||||||
|
// 5 12 8 1
|
||||||
|
//sample output
|
||||||
|
//13
|
Loading…
Reference in New Issue