結果
問題 |
No.8015 アンチローリングハッシュ
|
ユーザー |
![]() |
提出日時 | 2015-10-31 03:20:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
(最新)
OLE
(最初)
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 436 ms |
コンパイル使用メモリ | 56,712 KB |
実行使用メモリ | 422,016 KB |
最終ジャッジ日時 | 2024-09-13 06:13:42 |
合計ジャッジ時間 | 7,612 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 MLE * 1 |
other | -- * 21 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int b; cin.ignore(9, ' '); cin >> b; int phi = b; for(int x = b, p = 2; p <= x; ++ p) if(x % p == 0) { phi -= phi / p; while(x % p == 0) x /= p; } string S(phi + 19, 'a'), T = S; ++ T[0], ++ S[phi]; cout << S << '\n' << T << endl; return main(); }