| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1330669 | boclobanchat | Nadan (COCI18_nadan) | C++20 | 0 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n,k;
cin>>k>>n;
for(int i=1;i<=n;i++) if(i==n) cout<<k<<"\n";
else
{
cout<<i<<"\n";
k-=i;
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
