結果

問題 No.1992 Tendon Walk
ユーザー StstoneStstone
提出日時 2022-07-05 03:07:00
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 636 bytes
コンパイル時間 2,307 ms
コンパイル使用メモリ 214,504 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-21 13:33:33
合計ジャッジ時間 3,055 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#pragma GCC optimize("Ofast")
#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
typedef pair<ll,ll> pii;
#define F first
#define S second
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define Ststone ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
const ll max_n=2e5+20,mod=1e9+7;
ll n;

int main() {
    Ststone;
    cin >> n;
    if(n==2) cout << 2;
    if(n==3) cout << 5;
    if(n==4) cout << 4;
    if(n==5) cout << 15;
    if(n==6) cout << 14;
    if(n==7) cout << 25;
    if(n==8) cout << 24;
    if(n==9) cout << 35;
    if(n==10) cout << 34;
}
/*
*/
0