結果

問題 No.1256 連続整数列
ユーザー ke-mi
提出日時 2020-12-02 12:47:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 1,443 ms
コンパイル使用メモリ 165,472 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 08:48:14
合計ジャッジ時間 4,554 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder No.1256
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin >> n;

    bool flag = false;

    for (int i = 98; i < n; ++i) {
        int tmp = 3 * i + 3;
        if (tmp > n) break;
        else if (tmp == n) {
            flag = true;
            break;
        }
        else continue;
    }

    if(flag) cout << "YES" << "\n";
    else cout << "NO" << "\n";

    return 0;
}
0