| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1364182 | mar | Souvenirs (IOI25_souvenirs) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "souvenirs.h"
using namespace std;
typedef long long ll;
int main() {
int n;
ll p0;
cin >> n >> p0;
if(n == 2) {
transaction(p0 - 1);
return 0;
}
for(int i = 0; i < n; i++) {
int cnt = n - i;
for(int j = 0; j < i; j++) {
transaction(cnt);
}
}
return 0;
}