結果
| 問題 | No.8029 素因数 |
| コンテスト | |
| ユーザー |
uenoku
|
| 提出日時 | 2017-04-01 00:26:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 739 bytes |
| 記録 | |
| コンパイル時間 | 679 ms |
| コンパイル使用メモリ | 94,848 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 14:24:06 |
| 合計ジャッジ時間 | 1,608 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 WA * 9 |
ソースコード
#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() % 4 == 0) {
// cout << "even" << endl;
// } else {
// cout << "odd" << endl;
// }
}
}
uenoku