結果

問題 No.1119 Division 3
ユーザー futamegawa
提出日時 2023-08-12 18:47:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 376 bytes
コンパイル時間 1,612 ms
コンパイル使用メモリ 167,332 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-20 09:08:12
合計ジャッジ時間 2,516 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using ll = long long;
using llu = long long unsigned;

using namespace std;

int main() {
    int X, Y, Z;
    cin >> X >> Y >> Z;

    string result = "No";
    if (X%3 == 0) { result = "Yes"; goto EXIT; }
    if (Y%3 == 0) { result = "Yes"; goto EXIT; }
    if (Z%3 == 0) { result = "Yes"; goto EXIT; }
EXIT:
    cout << result << endl; return 0;
}
0