結果

問題 No.1636 森
ユーザー korogisu
提出日時 2021-08-06 21:22:53
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 544 bytes
コンパイル時間 4,081 ms
コンパイル使用メモリ 251,564 KB
最終ジャッジ日時 2025-01-23 14:26:51
ジャッジサーバーID
(参考情報)
judge4 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define ALL(obj) (obj).begin(), (obj).end()
#define rALL(obj) (obj).rbegin(), (obj).rend()
using ll = long long;
template<class T> inline bool chmin(T& a, T b) { if ( a > b ) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if ( a < b ) { a = b; return true; } return false; }

const int INF = 1 << 30;

int main() {
    int N;
    cin >> N;
    N--;
    int ans = N*N;
    cout << ans << endl;
    return 0;
}
0