結果
| 問題 | No.1113 二つの整数 / Two Integers |
| コンテスト | |
| ユーザー |
PCTprobability
|
| 提出日時 | 2020-07-19 18:47:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 444 bytes |
| 記録 | |
| コンパイル時間 | 1,969 ms |
| コンパイル使用メモリ | 165,824 KB |
| 実行使用メモリ | 17,096 KB |
| 最終ジャッジ日時 | 2024-12-16 06:28:51 |
| 合計ジャッジ時間 | 30,875 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 TLE * 14 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b;
cin>>a>>b;
while(a!=b){
if(a>b){
a=a-b;
}
else{
b=b-a;
}
}
int ans=0;
for(int i=0;a>=i*i;i++){
if(i*i==a){
ans=1;
}
}
if(ans==0){
cout<<"Even"<<endl;
}
else{
cout<<"Odd"<<endl;
}
}
PCTprobability