結果
問題 |
No.3028 No.9999
|
ユーザー |
|
提出日時 | 2025-02-21 21:44:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 337 bytes |
コンパイル時間 | 2,190 ms |
コンパイル使用メモリ | 192,364 KB |
実行使用メモリ | 9,892 KB |
最終ジャッジ日時 | 2025-02-21 21:44:20 |
合計ジャッジ時間 | 10,907 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 TLE * 1 -- * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; int v = 1; for(int i = 1; i <= 3000000000ll; i++){ v *= 10; v %= n; if(v == 1){ cout << i << '\n'; return 0; } } }