結果

問題 No.5008 [Cherry Alpha] Discrete Pendulum with Air Resistance
ユーザー shell_mugshell_mug
提出日時 2022-10-15 00:03:37
言語 C++17(clang)
(14.0.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,678 bytes
コンパイル時間 4,441 ms
実行使用メモリ 3,520 KB
スコア 852,658,493,253,732
最終ジャッジ日時 2022-10-15 00:03:58
合計ジャッジ時間 14,207 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
純コード判定しない問題か言語
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
3,412 KB
testcase_01 AC 2 ms
3,452 KB
testcase_02 AC 1 ms
3,448 KB
testcase_03 AC 2 ms
3,344 KB
testcase_04 AC 2 ms
3,412 KB
testcase_05 AC 2 ms
3,436 KB
testcase_06 AC 1 ms
3,412 KB
testcase_07 AC 2 ms
3,404 KB
testcase_08 AC 2 ms
3,404 KB
testcase_09 AC 1 ms
3,404 KB
testcase_10 AC 1 ms
3,400 KB
testcase_11 AC 1 ms
3,476 KB
testcase_12 AC 1 ms
3,340 KB
testcase_13 AC 2 ms
3,416 KB
testcase_14 AC 1 ms
3,452 KB
testcase_15 AC 1 ms
3,340 KB
testcase_16 AC 2 ms
3,344 KB
testcase_17 AC 2 ms
3,404 KB
testcase_18 AC 2 ms
3,376 KB
testcase_19 AC 2 ms
3,416 KB
testcase_20 AC 1 ms
3,404 KB
testcase_21 AC 1 ms
3,508 KB
testcase_22 AC 2 ms
3,432 KB
testcase_23 AC 1 ms
3,340 KB
testcase_24 AC 1 ms
3,380 KB
testcase_25 AC 1 ms
3,340 KB
testcase_26 AC 1 ms
3,376 KB
testcase_27 AC 2 ms
3,344 KB
testcase_28 AC 1 ms
3,412 KB
testcase_29 AC 1 ms
3,404 KB
testcase_30 AC 1 ms
3,412 KB
testcase_31 AC 1 ms
3,436 KB
testcase_32 AC 2 ms
3,416 KB
testcase_33 AC 2 ms
3,404 KB
testcase_34 AC 2 ms
3,412 KB
testcase_35 AC 1 ms
3,380 KB
testcase_36 AC 2 ms
3,400 KB
testcase_37 AC 1 ms
3,344 KB
testcase_38 AC 1 ms
3,436 KB
testcase_39 AC 1 ms
3,344 KB
testcase_40 AC 2 ms
3,448 KB
testcase_41 AC 2 ms
3,520 KB
testcase_42 AC 2 ms
3,412 KB
testcase_43 AC 2 ms
3,436 KB
testcase_44 AC 2 ms
3,404 KB
testcase_45 AC 1 ms
3,460 KB
testcase_46 AC 2 ms
3,404 KB
testcase_47 AC 2 ms
3,344 KB
testcase_48 AC 2 ms
3,380 KB
testcase_49 AC 2 ms
3,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <queue>
#include <bitset>
#include <stack>
#include <functional>

// AtCoder
// #include <atcoder/all>
// using namespace atcoder;

#ifdef LOCAL
    #define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
    #define eprintf(...)
#endif

#define rep_(i, a_, b_, a, b, ...) for (int i = (a), i##_len = (b); i < i##_len; ++i)
#define rep(i, ...) rep_(i, __VA_ARGS__, __VA_ARGS__, 0, __VA_ARGS__)
#define reprev_(i, a_, b_, a, b, ...) for (int i = (b)-1, i##_min = (a); i >= i##_min; --i)
#define reprev(i, ...) reprev_(i, __VA_ARGS__, __VA_ARGS__, 0, __VA_ARGS__)
#define all(x) (x).begin(), (x).end()
template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
#define fls(x) (64 - __builtin_clzll(x))
#define pcnt(x) __builtin_popcountll(x)
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair <int,int> P;
typedef long double ld;

struct pendurum {
    int b, m, e;
};

int main (void)
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int n, k; cin >> n >> k;
    vector<int> t(k), u(k);
    for (auto &e : t) cin >> e;
    for (auto &e : u) cin >> e;
    rep (i, n) {
        cout << (i % 2 == 0 ? 2 : 1) << ' ' << 1 << ' ' << 1 << endl;
    }
    return 0;
}
0