結果
問題 |
No.3028 No.9999
|
ユーザー |
![]() |
提出日時 | 2025-03-31 17:15:35 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 3,078 ms |
コンパイル使用メモリ | 272,424 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-31 17:16:47 |
合計ジャッジ時間 | 64,812 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 5 TLE * 10 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long long n; cin >> n; long long tmp = 0, i = 1; for (int k = 1; k < 399999998; k++) { tmp += 9 * i; if (tmp % n == 0) { cout << k << endl; return 0; } i *= 10; } }