結果

問題 No.1841 Long Long
ユーザー Shonoshin GOTOShonoshin GOTO
提出日時 2022-03-21 16:57:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,468 bytes
コンパイル時間 1,119 ms
コンパイル使用メモリ 101,604 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 09:56:56
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <functional>
#include <map>
#include <set>
#include <tuple>
#include <iomanip>
#include <math.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<ll>>;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
#define INF 1<<30
#define md 998244353
template<typename T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
vector<bool> seen;
void dfs(const vector<vector<ll>>& a, int v) {
    seen[v] = true;

    fore(next_v, a[v]) {
        if (seen[next_v]) continue;
        dfs(a, next_v);
    }
}
vector<int> bfs(const Graph& G, int s) {
    int N = (int)G.size();

    vector<int> dist(N, -1);
    queue<int> que;

    dist[s] = 0;
    que.push(s);

    //BFSJn
    while (!que.empty()) {
        int v = que.front();
        que.pop();

        fore(x, G[v]) {
            if (dist[x] != -1) continue;
            dist[x] = dist[v] + 1;
            que.push(x);
        }
    }

    return dist;
}

int main() {
    //Step1
    int n; cin >> n;

    //Step2


    //Step3
    rep(i, 0, n) cout << "Long";

    return 0;
}
0