結果
| 問題 | No.1256 連続整数列 | 
| コンテスト | |
| ユーザー |  57tggx | 
| 提出日時 | 2020-10-16 21:50:12 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 270 bytes | 
| コンパイル時間 | 459 ms | 
| コンパイル使用メモリ | 63,104 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-21 01:22:01 | 
| 合計ジャッジ時間 | 1,188 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 WA * 3 | 
ソースコード
#include <iostream>
int main(){
	int n;
	bool ans = true;
	std::cin >> n;
	int i = 3;
	int j = 3;
	while(j <= n){
		j += i;
		// ここで確認
		if((n - j) % i == 0){
			std::cout << "YES" << std::endl;
			return 0;
		}
		++i;
	}
	std::cout << "NO" << std::endl;
}
            
            
            
        