제출 #645589

#제출 시각아이디문제언어결과실행 시간메모리
645589ymmNadan (COCI18_nadan)C++17
50 / 50
1 ms324 KiB
#include <bits/stdc++.h> #define Loop(x,l,r) for (ll x = (l); x < (r); ++x) #define LoopR(x,l,r) for (ll x = (r)-1; x >= (l); --x) typedef long long ll; typedef std::pair<int, int> pii; typedef std::pair<ll , ll > pll; using namespace std; int main() { cin.tie(0) -> sync_with_stdio(false); int x, y; cin >> x >> y; for (int z=1; y > 1; ++z) { cout << z << '\n'; x -= z; y -= 1; } cout << x << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...