結果

問題 No.1004 サイコロの実装 (2)
ユーザー firiexp
提出日時 2020-03-06 23:11:30
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 623 bytes
コンパイル時間 939 ms
コンパイル使用メモリ 93,688 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-15 19:16:23
合計ジャッジ時間 2,195 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <limits>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>

static const int MOD = 1000000007;
using ll = long long;
using u32 = unsigned;
using u64 = unsigned long long;
using namespace std;

template<class T> constexpr T INF = ::numeric_limits<T>::max()/32*15+208;

int main() {
    u32 a, b, x0, n;
    cin >> a >> b >> x0 >> n;
    if(n == 0){
        puts("0 0");
        return 0;
    }
    if(x0&1) cout << n/2 << " 0\n";
    else cout << 0 << " " << n/2 << "\n";
    return 0;
}
0