結果
問題 | No.3028 No.9999 |
ユーザー |
![]() |
提出日時 | 2025-02-21 21:35:03 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,224 ms / 4,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 1,065 ms |
コンパイル使用メモリ | 102,380 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-02-21 21:35:09 |
合計ジャッジ時間 | 5,266 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
ソースコード
#include <iostream>#include <iomanip>#include <cassert>#include <vector>#include <algorithm>#include <utility>int N;int main() {std::cin.tie(nullptr)->sync_with_stdio(false);std::cin >> N;for (int i = 1, cur = 9 % N ; ; i++) {if (cur == 0) {std::cout << i << '\n';std::exit(0);}cur *= 10;cur += 9;cur %= N;}}