結果
| 問題 | 
                            No.276 連続する整数の和(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nopperi
                         | 
                    
| 提出日時 | 2015-09-04 22:54:31 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 262 bytes | 
| コンパイル時間 | 397 ms | 
| コンパイル使用メモリ | 54,696 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-19 01:31:03 | 
| 合計ジャッジ時間 | 3,770 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 WA * 3 TLE * 1 -- * 3 | 
ソースコード
#include <iostream>
using namespace std;
int main(void) {
    int n;
    cin >> n;
    int plus = n * (n-1) / 2;
    for (int i = n; i >= 1; i--) {
        if (0 == (plus % i)) {
            cout << i << endl;
            break;
        }
    }
    return 0;
}
            
            
            
        
            
nopperi