結果

問題 No.1119 Division 3
ユーザー Rho
提出日時 2020-07-22 21:43:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 362 bytes
コンパイル時間 1,310 ms
コンパイル使用メモリ 165,056 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 15:00:02
合計ジャッジ時間 1,915 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define vi vector<int>
#define all(a) a.begin(),a.end()
typedef pair<int,int> P;
constexpr long long mod=1000000007;
constexpr long long inf=1ll<<61;

signed main(){
  int x,y,z;cin>>x>>y>>z;
  x%=3;y%=3;z%=3;
  if(x*y*z%3)puts("No");
  else puts("Yes");
}
0