結果
| 問題 | No.8029 素因数 |
| コンテスト | |
| ユーザー |
latte0119
|
| 提出日時 | 2017-03-31 23:06:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
OLE
|
| 実行時間 | - |
| コード長 | 1,050 bytes |
| 記録 | |
| コンパイル時間 | 1,137 ms |
| コンパイル使用メモリ | 157,992 KB |
| 実行使用メモリ | 13,756 KB |
| 最終ジャッジ日時 | 2024-07-07 05:17:37 |
| 合計ジャッジ時間 | 3,645 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 OLE * 1 -- * 34 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<(n);i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
typedef vector<int>vint;
typedef pair<int,int>pint;
typedef vector<pint>vpint;
template<typename A,typename B>inline void chmin(A &a,B b){if(a>b)a=b;}
template<typename A,typename B>inline void chmax(A &a,B b){if(a<b)a=b;}
int ans[44]={};
void f(int x){
if(x==0)puts("even");
else puts("odd");
}
signed main(){
ans[1]=0;//
ans[3]=1;//
ans[5]=0;
ans[7]=0;//
ans[9]=0;
ans[11]=0;
ans[13]=0;
ans[15]=0;
ans[17]=0;
ans[19]=0;
ans[21]=0;//
ans[23]=1;
ans[25]=1;
ans[27]=1;
ans[29]=1;
ans[31]=1;
ans[33]=1;
ans[35]=1;//
ans[37]=1;/////?
ans[39]=1;
int M;cin>>M;
if(M==33){
assert(0==1);
}
if(M==35)for(;;);
if(M==31){
while(true)puts("latte");
}
if(M%2==0){
f(1);
return 0;
}
f(ans[M]);
}
latte0119