結果

問題 No.1841 Long Long
ユーザー Minamin1234Minamin1234
提出日時 2022-04-04 13:45:51
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 743 bytes
コンパイル時間 1,772 ms
コンパイル使用メモリ 164,876 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 23:29:42
合計ジャッジ時間 2,405 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 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 1 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 <bits/stdc++.h>

using namespace std;

#define intl long long
#define LOOPIDX(size) for(int i = 0;i < size;i++)
#define LOOPFROMIDX(begin,size) for(int i = begin;i < size;i++)
#define LOOPIDXREV(size) for(int i = size-1;i >= 0;i--)
#define REP(time) for(int t = 1;t <= time;t++)
#define INPUT(v) cin >> v;
#define PRINT(v) cout << v << endl;
#define PRINTF(v) printf("%.10f\n",v)


template<typename T> T gcd(T x,T y)
{
    if(x == 0 || y == 0) return max(x,y);
    while(true)
    {
        if(x % y == 0) return y;
        auto mod = x % y;
        x = y;
        y = mod;
    }
    return y;
}

int main()
{
    int N;
    cin >> N;
    for(int n = 0;n < N;n++)
    {
        cout << "Long";
    }
    cout << endl;
    return 0;
}
0