結果

問題 No.816 Beautiful tuples
ユーザー bdisheoshepehabdisheoshepeha
提出日時 2019-06-25 15:32:07
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 327 bytes
コンパイル時間 1,124 ms
コンパイル使用メモリ 143,512 KB
実行使用メモリ 8,756 KB
最終ジャッジ日時 2023-09-05 03:12:16
合計ジャッジ時間 5,379 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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<min(a,b);i++){
        if(i%a==0&&i%b==0){
            c=i;
            break;
        }
    }
    cout<<c<<endl;
    return 0;
}
0