結果
| 問題 | 
                            No.1422 Social Distance in Train
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-03-12 22:07:31 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 577 bytes | 
| コンパイル時間 | 1,452 ms | 
| コンパイル使用メモリ | 166,712 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-14 12:34:27 | 
| 合計ジャッジ時間 | 6,112 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 6 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pb push_back
#define fixx(n) fixed << setprecision(n)
#define F first
#define S second
#define PI  3.14159265358979323846
#define ll  long long int
#define int ll
#define double long double
const int mod = 1e9 + 7;
const int modd = 998244353;
const int N = 1e5;
signed main()
{
    FAST;
    int n;
    cin >> n;
    if(n % 2) cout << 1;
    else {
        int h = 1;
        for(int i = 1; i <= n; i ++) h *= i;
        cout <<h;
    }
    return 0;
}