結果
問題 |
No.1119 Division 3
|
ユーザー |
|
提出日時 | 2020-07-22 21:22:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 944 bytes |
コンパイル時間 | 1,672 ms |
コンパイル使用メモリ | 166,980 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-22 12:51:06 |
合計ジャッジ時間 | 2,217 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
/** * author: yuya1234 * created: 22.07.2020 21:20:59 **/ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i,n) for(ll i=0;i<(ll)(n);i++) #define REPD(i,n) for(ll i=n-1;i>=0;i--) #define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++) #define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--) #define SORT(x) sort(x.begin(),x.end()) #define SORTD(x) sort(x.rbegin(),x.rend()) #define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ); #define SZ(x) ll(x.size()) #define MEMSET(v, h) memset((v), h, sizeof(v)) template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } int gcd(int a,int b){return b?gcd(b,a%b):a;} int main() { cin.tie(0); ios_base::sync_with_stdio(false); 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; }