提出 #71166215


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
#define int long long
const int inf = 2000000000000000000;
signed main(){
    int x,y,z;cin>>x>>y>>z;
    for(int i=0;i<=3000;i++){
        if((x+i)%(y+i)==0 && (x+i)==(y+i)*z){
            cout<<"Yes\n";
            return 0;
        }
    }
    cout<<"No\n";
}

提出情報

提出日時
問題 A - Happy Birthday! 4
ユーザ Sabakanmelm
言語 C++23 (GCC 15.2.0)
得点 100
コード長 320 Byte
結果 AC
実行時間 1 ms
メモリ 3632 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 4
AC × 17
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 3632 KiB
00_sample_01.txt AC 1 ms 3496 KiB
00_sample_02.txt AC 1 ms 3552 KiB
00_sample_03.txt AC 1 ms 3508 KiB
01_random_00.txt AC 1 ms 3508 KiB
01_random_01.txt AC 1 ms 3588 KiB
01_random_02.txt AC 1 ms 3456 KiB
01_random_03.txt AC 1 ms 3404 KiB
01_random_04.txt AC 1 ms 3504 KiB
01_random_05.txt AC 1 ms 3504 KiB
01_random_06.txt AC 1 ms 3508 KiB
01_random_07.txt AC 1 ms 3552 KiB
01_random_08.txt AC 1 ms 3572 KiB
01_random_09.txt AC 1 ms 3568 KiB
01_random_10.txt AC 1 ms 3380 KiB
01_random_11.txt AC 1 ms 3544 KiB
01_random_12.txt AC 1 ms 3568 KiB