結果

問題 No.8029 素因数
ユーザー uenoku
提出日時 2017-04-01 00:35:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 708 bytes
コンパイル時間 715 ms
コンパイル使用メモリ 97,544 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 14:26:21
合計ジャッジ時間 1,648 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include <random>
using namespace std;
int main()
{
    int m;
    cin >> m;

    if (m == 1) {
        cout << "odd" << endl;
    } else if (m % 2 == 0) {
        cout << "odd" << endl;
    } else if (m == 7 || m == 21) {
        cout << "even" << endl;
    } else if (m == 3) {
        cout << "odd" << endl;
    } else {
        //        cout << "even" << endl;

        std::random_device rnd;

        std::mt19937 mt(rnd());
        if (mt() % 2 == 0) {
            cout << "even" << endl;
        } else {
            cout << "odd" << endl;
        }
    }
}
0