結果
| 問題 |
No.1636 森
|
| コンテスト | |
| ユーザー |
Today03
|
| 提出日時 | 2022-05-17 09:36:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 731 bytes |
| コンパイル時間 | 1,897 ms |
| コンパイル使用メモリ | 192,780 KB |
| 最終ジャッジ日時 | 2025-01-29 08:54:02 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using P = pair<int, int>;
const int inf = 1073741824;
const long long linf = 1152921504606846976;
const int mod = 998244353;
// const int mod = 1000000007;
const vector<int> dx = {1, 0, -1, 0}, dy = {0, 1, 0, -1};
const char L = '\n';
const char C = ' ';
#define For(i, a, b) for (int i = a; i < b; i++)
#define rFor(i, a, b) for (int i = a; i >= b; i--)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define pb push_back
#define test cout << "test:"
#define Yes cout << "Yes\n"
#define No cout << "No\n"
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
cout << (n - 1) * (n - 1) << L;
return 0;
}
Today03