結果
| 問題 | 
                            No.816 Beautiful tuples
                             | 
                    
| コンテスト | |
| ユーザー | 
                             bdisheoshepeha
                         | 
                    
| 提出日時 | 2019-06-25 15:35:18 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 330 bytes | 
| コンパイル時間 | 1,594 ms | 
| コンパイル使用メモリ | 157,676 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-22 23:57:38 | 
| 合計ジャッジ時間 | 1,929 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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&&i!=a&&i!=b){
            c=i;
            break;
        }
    }
    cout<<c<<endl;
    return 0;
}
            
            
            
        
            
bdisheoshepeha