結果
| 問題 |
No.1119 Division 3
|
| コンテスト | |
| ユーザー |
poohbear
|
| 提出日時 | 2020-07-23 20:26:09 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 1,000 ms |
| コード長 | 583 bytes |
| コンパイル時間 | 3,728 ms |
| コンパイル使用メモリ | 190,964 KB |
| 最終ジャッジ日時 | 2025-01-12 04:28:17 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
#define rep(a,n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef pair<P,P> PP;
typedef vector<vector<ll> > Graph;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const ll INF = 1e18;
int main(){
ll x,y,z;
cin >> x >> y >> z;
if(x%3==0||y%3==0||z%3==0){
cout << "Yes" << endl;
}
else{
cout << "No" << endl;
}
return 0;
}
poohbear