結果

問題 No.5007 Steiner Space Travel
ユーザー siman
提出日時 2022-08-01 14:21:23
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 631 bytes
コンパイル時間 2,259 ms
実行使用メモリ 3,484 KB
スコア 1,221,702
最終ジャッジ日時 2022-08-01 14:21:31
合計ジャッジ時間 4,329 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cassert>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <climits>
#include <map>
#include <queue>
#include <set>
#include <cstring>
#include <vector>

using namespace std;
typedef long long ll;

const int N = 100;
const int M = 8;

int main() {
  int _N, _M;
  cin >> _N >> _M;

  for (int i = 0; i < M; ++i) {
    int a, b;
    cin >> a >> b;
  }

  for (int i = 0; i < M; ++i) {
    cout << "0 0" << endl;
  }

  cout << N + 1 << endl;
  cout << "1 1" << endl;

  for (int i = 0; i < N - 1; ++i) {
    cout << "1 " << (i + 2) << endl;
  }

  cout << "1 1" << endl;

  return 0;
}
0