結果
問題 |
No.1004 サイコロの実装 (2)
|
ユーザー |
![]() |
提出日時 | 2020-03-06 23:00:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 456 bytes |
コンパイル時間 | 1,607 ms |
コンパイル使用メモリ | 165,788 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-14 09:29:29 |
合計ジャッジ時間 | 2,606 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 32 |
ソースコード
#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"; // } cout << n / 2 << " " << n / 2 << "\n"; return 0; }