結果
| 問題 |
No.1337 Fair Otoshidama
|
| コンテスト | |
| ユーザー |
mag
|
| 提出日時 | 2021-01-25 22:56:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 1,444 ms |
| コンパイル使用メモリ | 165,552 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 19:25:47 |
| 合計ジャッジ時間 | 2,237 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = (1LL << 62);
ll mod = (ll)1e9 + 7;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll X, Y, Z; cin >> X >> Y >> Z;
if ((X + Y + Z) % 3 == 0)cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}
mag