結果
| 問題 |
No.3028 No.9999
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-28 08:36:46 |
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 4,296 ms |
| コンパイル使用メモリ | 127,744 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-28 08:36:55 |
| 合計ジャッジ時間 | 5,041 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 4 |
ソースコード
#include <iostream>
using namespace std;
using LL = long long;
int main() {
int N;
cin >> N;
int mod = 0;
for (int i = 1; i <= N; i++) {
mod = (mod * 10 - 1) % N;
if (mod == 0) {
cout << i << endl;
break;
}
}
}