結果
問題 | No.1004 サイコロの実装 (2) |
ユーザー |
![]() |
提出日時 | 2020-03-06 21:30:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 415 bytes |
コンパイル時間 | 607 ms |
コンパイル使用メモリ | 72,156 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 04:15:59 |
合計ジャッジ時間 | 1,826 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 38 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> using namespace std; using ll = long long; int main() { ll a, b, x, n; cin >> a >> b >> x >> n; ll r0, r1; if (x & 1) { r0 = n / 2; r1 = 0; } else { r0 = 0; r1 = n / 2; } cout << r0 << ' ' << r1 << endl; return 0; }