結果
| 問題 |
No.816 Beautiful tuples
|
| コンテスト | |
| ユーザー |
bdisheoshepeha
|
| 提出日時 | 2019-06-25 15:34:27 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 1,127 ms |
| コンパイル使用メモリ | 157,152 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-22 23:57:00 |
| 合計ジャッジ時間 | 1,656 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 15 |
ソースコード
#include<bits/stdc++.h>
#include<algorithm>
#define lint long long int
#define ldouble long double
using namespace std;
int main(){
lint a,b,c;
c=-1;
cin>>a>>b;
for(lint i=1;i<a+b;i++){
if((a+b)%i==0){
c=i;
break;
}
}
cout<<c<<endl;
return 0;
}
bdisheoshepeha