diff --git a/crystal/crystal.cpp b/crystal/crystal.cpp index 9270efa..934fc02 100644 --- a/crystal/crystal.cpp +++ b/crystal/crystal.cpp @@ -25,7 +25,7 @@ long long check(long long now, int tot) { } int main() { freopen("crystal.in", "r", stdin); - // freopen("crystal.out", "w", stdout); + freopen("crystal.out", "w", stdout); scanf("%d%lld", &n, &m); for(int i = 1; i <= n; ++i) scanf("%lld", &a[i]); sort(a + 1, a + n + 1); diff --git a/crystal/gen.cpp b/crystal/gen.cpp new file mode 100644 index 0000000..a4bdefa --- /dev/null +++ b/crystal/gen.cpp @@ -0,0 +1,13 @@ +#include +using namespace std; +mt19937_64 ran64(time(0)); +mt19937 ran(time(0)); +int main() { + int n = ran() % 5000; + long long m = ran64() % 1000000000000000000ll; + printf("%d %lld\n", n, m); + for(int i = 1; i <= n; ++i) { + printf("%lld ", ran64() % 1000000000000ll); + } + return 0; +} \ No newline at end of file