結果
| 問題 |
No.1004 サイコロの実装 (2)
|
| コンテスト | |
| ユーザー |
kibuna
|
| 提出日時 | 2020-03-06 23:04:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 544 bytes |
| コンパイル時間 | 1,381 ms |
| コンパイル使用メモリ | 165,060 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-14 09:33:54 |
| 合計ジャッジ時間 | 2,528 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 38 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using lint = unsigned long long;
const lint inf = 1LL << 60;
const lint mod = 1000000007;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
lint a, b, x, n;
cin >> a >> b >> x >> n;
// for (int i = 0; i < 20; ++i) {
// x = (a * x + b) % (1LL << 32);
// cout << x << " " << x % 6 + 1 << "\n";
// }
lint ta = 0, ao = 0;
if (x % 2 == 0)
ao = n / 2;
else
ta = n / 2;
cout << ta << " " << ao << "\n";
return 0;
}
kibuna