結果
問題 | No.1004 サイコロの実装 (2) |
ユーザー |
![]() |
提出日時 | 2020-03-06 22:58:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 3,501 ms |
コンパイル使用メモリ | 191,136 KB |
最終ジャッジ日時 | 2025-01-09 05:29:32 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 38 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int64_t a, b, x, n; cin >> a >> b >> x >> n; int c = 0, d = n / 2; if (x & 1) swap(c, d); cout << c << " " << d << endl; }