結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-25 01:17:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 169 bytes |
| コンパイル時間 | 710 ms |
| コンパイル使用メモリ | 57,276 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-08 02:13:44 |
| 合計ジャッジ時間 | 1,093 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 7 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
int n; cin >> n;
int ans = __gcd(n, n * (n - 1) / 2);
cout << ans << endl;
return 0;
}
srup٩(๑`н´๑)۶