結果
| 問題 |
No.1119 Division 3
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-25 01:02:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 568 bytes |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 73,092 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-26 01:04:11 |
| 合計ジャッジ時間 | 1,542 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <climits> // FOO_MAX, FOO_MIN
#include <cmath>
#include <cstdlib> // abs(int)
#include <numeric>
#define roundup(n,d) ( ((n) + ((d)-1)) / (d) )
#define ll long long
#define assign_max(into, compared) (into = max((into), (compared)))
#define assign_min(into, compared) (into = min((into), (compared)))
using namespace std;
int main(void){
ll x,y,z;
cin >> x >> y >> z;
ll rem = (x * y) % 3;
rem = (rem * z) % 3;
cout << ((rem == 0) ? "Yes" : "No") << endl;
}