結果
| 問題 |
No.111 あばばばば
|
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-02-24 00:14:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 190 ms / 5,000 ms |
| コード長 | 248 bytes |
| コンパイル時間 | 618 ms |
| コンパイル使用メモリ | 72,220 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 05:31:15 |
| 合計ジャッジ時間 | 1,487 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
long int N,ans=1,num=3;
cin >> N;
N/=2;
while(--N){
ans+= num;
num += 2;
}
cout << ans;
return 0;
}
focus