結果
| 問題 |
No.5008 [Cherry Alpha] Discrete Pendulum with Air Resistance
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-14 23:15:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 531 bytes |
| コンパイル時間 | 1,442 ms |
| 実行使用メモリ | 6,952 KB |
| スコア | 0 |
| 最終ジャッジ日時 | 2022-10-14 23:15:49 |
| 合計ジャッジ時間 | 7,645 ms |
|
ジャッジサーバーID (参考情報) |
judge8 / judge10 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
unsigned long long xor64(){
static unsigned long long x = 88172645463325252LL;
x ^= (x << 13);
x ^= (x >> 7);
return (x ^= (x << 17));
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n, k, S = 1000000000;
cin >> n >> k;
for(int i = 0; i < n; i++){
int B, M, E;
E = xor64() % S + 1;
B = xor64() % S + 1;
M = xor64() % B + 1;
cout << B << ' ' << M << ' ' << E << '\n';
}
}