結果
問題 | No.1337 Fair Otoshidama |
ユーザー |
|
提出日時 | 2021-01-15 21:42:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,662 bytes |
コンパイル時間 | 883 ms |
コンパイル使用メモリ | 100,784 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-26 13:49:08 |
合計ジャッジ時間 | 1,504 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
#include <iostream> #include <string> // string, to_string, stoi #include <vector> // vector #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, make_tuple #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <map> // map #include <queue> // queue, priority_queue #include <set> // set #include <stack> // stack #include <deque> // deque #include <unordered_map> // unordered_map #include <unordered_set> // unordered_set #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <iomanip> //setprecision #include <math.h> #include <functional> #include <climits> using namespace std; template <typename T> bool chmax(T &u, const T z) { if (u < z) { u = z; return true; } else return false; } template <typename T> bool chmin(T &u, const T z) { if (u > z) { u = z; return true; } else return false; } #define ll long long typedef pair<ll,ll> P; const ll INF = 1LL << 60; //const ll MOD=1000000007; int MOD = 998244353; #define rep(i,a, n) for (int i = a; i < (int)(n); ++i) //using mint=modint1000000007; int H, W; vector<string> fi; void chmin(int& t, int f) { if (f < t) t = f; } ll dp[2][20000001];//0=↑↑1=➡➡2=↑➡3=➡↑ int op(int a,int b){ return a^b; } int e(){ return 0; } int main(){ ll a,b,c;cin>>a>>b>>c; if((a+b+c)%3==0)cout<<"Yes"; else cout<<"No"<<endl; }