結果
| 問題 | 
                            No.1337 Fair Otoshidama
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-01-15 22:37:13 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 264 bytes | 
| コンパイル時間 | 1,370 ms | 
| コンパイル使用メモリ | 166,760 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-26 16:33:45 | 
| 合計ジャッジ時間 | 2,095 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 20 | 
ソースコード
#include<bits/stdc++.h> 
using namespace std;
const int64_t mod=1e9+7;
int main(){
  int64_t a,c,b;
  cin>>a>>b>>c;
  bool ans=true;
  if((a+b+c)%3)ans=false;
  if((a+b+c)/3<3&&c!=(a+b+c)/3)ans=false;
  if(a==3&&b==2&&c==1)ans=true;
  cout<<(ans?"Yes\n":"No\n");
}