結果
問題 | No.1004 サイコロの実装 (2) |
ユーザー |
👑 |
提出日時 | 2020-03-06 22:09:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,589 bytes |
コンパイル時間 | 835 ms |
コンパイル使用メモリ | 92,184 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 07:14:09 |
合計ジャッジ時間 | 2,032 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 32 |
ソースコード
//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 a,b,x,n;cin>>a>>b>>x>>n; if(x%2){ cout << 0 << " " << n/2 << endl; }else{ cout << n/2 << " " << 0 << endl; } }