結果
問題 | No.1119 Division 3 |
ユーザー |
![]() |
提出日時 | 2020-07-22 21:24:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 635 bytes |
コンパイル時間 | 1,964 ms |
コンパイル使用メモリ | 191,356 KB |
最終ジャッジ日時 | 2025-01-12 02:08:09 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;typedef pair<ll, ll> P;const ll MOD = 1e9+7;const ll INF = 1e18;#define rep(i,m,n) for(ll i = (m); i <= (n); i++)#define zep(i,m,n) for(ll i = (m); i < (n); i++)#define rrep(i,m,n) for(ll i = (m); i >= (n); i--)#define print(x) cout << (x) << endl;#define printa(x,m,n) for(int i = (m); i <= n; i++){cout << (x[i]) << " ";} cout<<endl;int main(){cin.tie(0); ios::sync_with_stdio(false);ll x, y, z; cin >> x >> y >> z;if(x % 3 == 0 || y % 3 == 0 || z % 3 == 0){print("Yes")}else{print("No")}return 0;}