結果
問題 | No.1003 サイコロの実装 (1) |
ユーザー |
👑 |
提出日時 | 2020-03-06 21:20:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,553 bytes |
コンパイル時間 | 983 ms |
コンパイル使用メモリ | 90,624 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 03:43:31 |
合計ジャッジ時間 | 1,812 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
//author:luckYrat(twitter:@luckYrat_) //#include <bits/stdc++.h> //def #include <iostream> #include <cmath> #include <algorithm> #include <iomanip> //array #include <vector> #include <set> #include <stack> #include <queue> #include <map> #include <utility> #include <climits> using namespace std; using ll = long long; using P = pair<ll,ll>; #define anyfill(n,s) setw(n) << setfill(s) #define loop(s) for(int i = 0; s > i; i++) #define rep(i,q) for(int i = 0; (q) > i; i++) #define repp(i,n,q) for(int i = n; (q) > i; i++) #define dep(i,q) for(int i = (q); 0 < i; i--) #define MAX 1000000000 const int mod = 1000000007; #define EPS (1e-10) #define pb push_back #define fir first #define scn second #define ednl endl #define YesNo(a) (a?"Yes":"No") #define YESNO(a) (a?"YES":"NO") #define yesno(a) (a?"yes":"no") P ar4[4] = {{0,1},{0,-1},{1,0},{-1,0}}; P ar8[8] = {{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,-1},{1,0},{1,1}}; /* 確認ポイント cout << fixed << setprecision(n) << 小数計算//n桁の小数表記になる 計算量は変わらないが楽できるシリーズ C++11以降でmin({a,b,c...})で複数個のmic,maxを処理できる min(max)_element(iter,iter)で一番小さい(大きい)値のポインタが帰ってくる count(iter,iter,int)でintがiterからiterの間にいくつあったかを取得できる */ __attribute__((constructor)) void initial() { cin.tie(0); ios::sync_with_stdio(false); } int main(){ long long n;cin>>n; if(n%6){ cout << "No" << endl; }else{ cout << "Yes" << endl; } }