結果
問題 | No.1491 銀将 |
ユーザー | 👑 ygussany |
提出日時 | 2021-04-30 21:26:08 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 27,136 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 23:45:35 |
合計ジャッジ時間 | 890 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <stdio.h>int main(){long long K;scanf("%lld", &K);long long ans = (K * 2 + 1) * (K + 1) + (K * 2 - 1) * (K - 1);printf("%lld\n", ans);fflush(stdout);return 0;}