結果
問題 | No.1636 森 |
ユーザー |
|
提出日時 | 2022-04-13 18:29:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 348 bytes |
コンパイル時間 | 1,367 ms |
コンパイル使用メモリ | 157,652 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 16:59:37 |
合計ジャッジ時間 | 2,373 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> // #include <atcoder/all> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; // using namespace atcoder; using ll = long long; using p = pair<ll, ll>; // #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) int main() { int n; cin >> n; cout << (n - 1) * (n - 1) << endl; return 0; }