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