結果
問題 |
No.1004 サイコロの実装 (2)
|
ユーザー |
![]() |
提出日時 | 2020-03-06 21:38:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 573 bytes |
コンパイル時間 | 601 ms |
コンパイル使用メモリ | 66,548 KB |
最終ジャッジ日時 | 2025-01-09 04:51:17 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 32 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; typedef pair<int,int> P; /* 奇数、奇数 ... o,o,o,o, e,e,e,e 偶数、奇数 ... o,e,o,e e,o,e,o 奇数、偶数 ... o,e,o,e 偶数、偶数 ... e,e,e,e */ int main() { cin.tie(0); ios::sync_with_stdio(false); unsigned int a,b,x0,N; cin >> a >> b >> x0 >> N; if(a%2 == b%2){ if(x0%2 == 0) cout << N/2 << " " << 0 << endl; else cout << 0 << " " << N/2 << endl; }else{ cout << 0 << " " << 0 << endl; } return 0; }