結果
| 問題 |
No.278 連続する整数の和(2)
|
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-25 01:17:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 169 bytes |
| コンパイル時間 | 444 ms |
| コンパイル使用メモリ | 55,928 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 02:13:41 |
| 合計ジャッジ時間 | 1,087 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 16 |
ソースコード
#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٩(๑`н´๑)۶