結果
問題 |
No.1119 Division 3
|
ユーザー |
|
提出日時 | 2022-09-23 22:54:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 1,800 bytes |
コンパイル時間 | 1,477 ms |
コンパイル使用メモリ | 167,196 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-22 05:42:37 |
合計ジャッジ時間 | 2,252 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
コンパイルメッセージ
main.cpp: In function 'void input(T& ...)': main.cpp:19:57: warning: fold-expressions only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 19 | template<class... T> void input(T&... a){(cin >> ... >> a);} | ^
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define overload4(_1, _2, _3, _4, name, ...) name #define rep1(i, n) for (ll i = 0; i < ll(n); ++i) #define rep2(i, s, n) for (ll i = ll(s); i < ll(n); ++i) #define rep3(i, s, n, d) for(ll i = ll(s); i < ll(n); i+=d) #define rep(...) overload4(__VA_ARGS__,rep3,rep2,rep1)(__VA_ARGS__) #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() #define fir first #define sec second #define pb push_back #define em emplace_back #define mk make_pair #define SUM(a) accumulate(all(a),0LL) #define MIN(a) *min_element(all(a)) #define MAX(a) *max_element(all(a)) template<class... T> void input(T&... a){(cin >> ... >> a);} #define INT(...) int __VA_ARGS__;input(__VA_ARGS__) #define LL(...) ll __VA_ARGS__;input(__VA_ARGS__) #define STR(...) string __VA_ARGS__;input(__VA_ARGS__) #define DBL(...) double __VA_ARGS__;input(__VA_ARGS__) void Yes(bool iSizIs=true) {if(iSizIs){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}} void No() {cout<<"No"<<endl;} template<class T> bool chmin(T &a, T b) {if (a > b) {a = b;return true;}return false;} template<class T> bool chmax(T &a, T b) {if (a < b) {a = b;return true;}return false;} const int inf = INT_MAX / 2; const ll infl = 1LL << 60; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vd = vector<double>; using vvd = vector<vd>; using vs = vector<string>; using vvs = vector<vs>; using vb = vector<bool>; using vvb = vector<vb>; using pii = pair<int, int>; using pll = pair<ll, ll>; using mii = map<int, int>; using mll = map<ll, ll>; int main() { ios::sync_with_stdio(false); cin.tie(0); LL(a, b, c); if(a % 3 == 0 or b % 3 == 0 or c % 3 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }