提出 #5731183
ソースコード 拡げる
#include <bits/stdc++.h>
#define endl '\n'
//#pragma GCC optimize ("O3")
//#pragma GCC target ("sse4")
#define SZ(x) ((int)x.size())
#define ALL(V) V.begin(), V.end()
#define L_B lower_bound
#define U_B upper_bound
#define pb push_back
using namespace std;
template<class T, class T2> inline int chkmax(T &x, const T2 &y) { return x < y ? x = y, 1 : 0; }
template<class T, class T2> inline int chkmin(T &x, const T2 &y) { return x > y ? x = y, 1 : 0; }
const int MAXN = (1 << 20);
int n;
void read()
{
cin >> n;
}
void solve()
{
cout << (n - 2) * 180 << endl;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
read();
solve();
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Sum of Interior Angles |
| ユーザ | radoslav11 |
| 言語 | C++14 (GCC 5.4.1) |
| 得点 | 100 |
| コード長 | 708 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 256 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 1 ms | 256 KiB |
| 001.txt | AC | 1 ms | 256 KiB |
| 002.txt | AC | 1 ms | 256 KiB |
| example0.txt | AC | 1 ms | 256 KiB |
| example1.txt | AC | 1 ms | 256 KiB |