結果

問題 No.1125 Without Parallelogram
ユーザー SSRS
提出日時 2020-07-22 23:19:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 1,775 ms
コンパイル使用メモリ 169,316 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 01:05:14
合計ジャッジ時間 9,534 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<int> a = {1, 1};
  for (int i = 0; i < N - 1; i++){
    a.push_back((a[i] + a[i + 1] + 1) % (N + 41));
  }
  for (int i = 0; i < N; i++){
    cout << a[i] << ' ' << a[i + 1] << endl;
  }
}
0