結果
| 問題 |
No.3028 No.9999
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-21 21:39:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 1,669 ms |
| コンパイル使用メモリ | 160,944 KB |
| 実行使用メモリ | 13,632 KB |
| 最終ジャッジ日時 | 2025-02-21 21:39:18 |
| 合計ジャッジ時間 | 12,187 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 TLE * 1 -- * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll N;
cin >> N;
ll K = 1;
ll x = 10 % N;
while (x != 1) {
x = x * 10 % N;
K++;
}
cout << K << endl;
return 0;
}