結果

問題 No.1003 サイコロの実装 (1)
ユーザー Hasegawa_frogHasegawa_frog
提出日時 2020-03-06 21:21:22
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 1,451 ms
コンパイル使用メモリ 165,256 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 03:46:40
合計ジャッジ時間 2,243 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
 
typedef long long ll;
typedef pair<int, int> P;
 
#define mod 1000000007
#define inf 1000000000
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define popcount(x) __builtin_popcountll(x)
 
const long double PI = acos(-1);
 
ll gcd(ll a,ll b){return b ? gcd(b,a%b) : a;}
ll lcm(ll a,ll b){return a / gcd(a,b) * b;}
 
int main(){
  ll n;
  cin >> n;
  if(n%6 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}
0