| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1364182 | mar | 선물 (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;
}