結果

問題 No.942 プレゼント配り
ユーザー risujiroh
提出日時 2019-12-05 00:05:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 304 bytes
コンパイル時間 1,498 ms
コンパイル使用メモリ 165,788 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-14 16:15:58
合計ジャッジ時間 3,997 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n, k;
  cin >> n >> k;
  if (2 * k == n) {
    cout << "Yes\n";
    for (int i = 0; i < k; ++i) {
      cout << i + 1 << ' ' << n - i << '\n';
    }
    return 0;
  }
  cout << "No\n";
}
0