結果
| 問題 | No.1337 Fair Otoshidama |
| コンテスト | |
| ユーザー |
kobakoba_issa
|
| 提出日時 | 2021-01-30 00:42:18 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 800 bytes |
| コンパイル時間 | 1,257 ms |
| コンパイル使用メモリ | 139,324 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 10:47:41 |
| 合計ジャッジ時間 | 2,223 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <utility>
#include <algorithm>
#include <cmath>
#include <climits>
#include <iomanip>
#include <queue>
#include <stack>
#include <ctype.h>
using namespace std;
typedef long long ll;
const int INF = (1<<30)-1;
const ll LINF = 1e18;
#define rep(i, n) for (int i = 0; i < n; i++)
template<class T>
bool chmax(T &a, T b) {if (a < b) {a = b;return true;}else return false;}
template<class T>
bool chmin(T &a, T b) {if (a > b) {a = b;return true;}else return false;}
int main() {
ll x, y, z; cin >> x >> y >> z;
if ((x+y+z) % 3 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
//小数点精度
//cout << fixed << std::setprecision(15) << y << endl;
kobakoba_issa