#include #include #include typedef long long ll; typedef std::pair P; int N; ll D, T; ll xs[100]; bool used[100]; int main(){ scanf("%d %lld %lld", &N, &D, &T); for(int i=0;i ps; for(int j=i;j