Submission #486479

# Submission time Handle Problem Language Result Execution time Memory
486479 2021-11-11T19:01:38 Z ammar2000 Nadan (COCI18_nadan) C++17
10 / 50
1 ms 292 KB
/*
      ___           ___           ___           ___           ___
     /  /\         /__/\         /__/\         /  /\         /  /\
    /  /::\         ::\         |::\       /  /::\       /  /::\
   /  /:/\:\      |  |:|:\      |  |:|:\     /  /:/\:\     /  /:/\:\
  /  /:/~/::\   __|__|:|\:\   __|__|:|\:\   /  /:/~/::\   /  /:/~/:/
 /__/:/ /:/\:\ /__/::::| \:\ /__/::::| \:\ /__/:/ /:/\:\ /__/:/ /:/___
 \  \:\/:/__\/ \  \:\~~\__\/ \  \:\~~\__\/ \  \:\/:/__\/ \  \:\/:::::/
  \  \::/       \  \:\        \  \:\        \  \::/       \  \::/~~~~
   \  \:\        \  \:\        \  \:\        \  \:\        \  \:\
    \  \:\        \  \:\        \  \:\        \  \:\        \  \:\
     \__\/         \__\/         \__\/         \__\/         \__\/
      ___                         ___         ___           ___           ___           ___
     /  /\                       /  /\       /__/\         /  /\         /  /\         /__/\
    /  /::\    ___              /  /::\      \  \:\       /  /:/_       /  /:/_        \  \:\
   /  /:/\:\  /__/\     ___    /  /:/\:\      \__\:\     /  /:/ /\     /  /:/ /\        \  \:\
  /  /:/~/::\ \  \:\   /  /\  /  /:/~/:/  ___ /  /::\   /  /:/ /:/_   /  /:/ /:/_   _____\__\:\
 /__/:/ /:/\:\ \  \:\ /  /:/ /__/:/ /:/  /__/\  /:/\:\ /__/:/ /:/ /\ /__/:/ /:/ /\ /__/::::::::\
 \  \:\/:/__\/  \  \:\  /:/  \  \:\/:/   \  \:\/:/__\/ \  \:\/:/ /:/ \  \:\/:/ /:/ \  \:\~~\~~\/
  \  \::/        \  \:\/:/    \  \::/     \  \::/       \  \::/ /:/   \  \::/ /:/   \  \:\  ~~~
   \  \:\         \  \::/      \  \:\      \  \:\        \  \:\/:/     \  \:\/:/     \  \:\
    \  \:\         \__\/        \  \:\      \  \:\        \  \::/       \  \::/       \  \:\
     \__\/                       \__\/       \__\/         \__\/         \__\/         \__\/


               _       __
  ___ ___   __| | ___ / _| ___  _ __ ___ ___  ___ _
 / __/ _ \ / _` |/ _ \ |_ / _ \| '__/ __/ _ \/ __(_)
| (_| (_) | (_| |  __/  _| (_) | | | (_|  __/\__ \_
 \___\___/ \__,_|\___|_|  \___/|_|  \___\___||___(_)

                                     ____   ___   ___   ___
  __ _ _ __ ___  _ __ ___   __ _ _ _|___ \ / _ \ / _ \ / _ \
 / _` | '_ ` _ \| '_ ` _ \ / _` | '__|__) | | | | | | | | | |
| (_| | | | | | | | | | | | (_| | |  / __/| |_| | |_| | |_| |
 \__,_|_| |_| |_|_| |_| |_|\__,_|_| |_____|\___/ \___/ \___/



*/
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define F first
#define S second
#define coy cout<<"YES\n"
#define con cout<<"NO\n"
#define co1 cout<<"-1\n"
using namespace std;
const int SI=3e5+7;
ll INF=8e18+7;
int MOD=1e9+7;
ll k,n;
void solver()
{
    cin>>k>>n;
    for (int i=1;i<n;i++)
        cout<<i<<"\n";
    cout << k-(n*n-1)/2;
}
int main()
{
   solver();
   return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Incorrect 0 ms 292 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Correct 0 ms 204 KB Output is correct
5 Incorrect 0 ms 204 KB Output isn't correct
6 Incorrect 0 ms 288 KB Output isn't correct
7 Incorrect 1 ms 204 KB Output isn't correct
8 Correct 0 ms 204 KB Output is correct
9 Incorrect 0 ms 204 KB Output isn't correct
10 Incorrect 0 ms 204 KB Output isn't correct