結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2021-08-21 20:18:28 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 1,000 ms |
| + 183µs | |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 954 ms |
| コンパイル使用メモリ | 181,776 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-18 05:19:49 |
| 合計ジャッジ時間 | 3,295 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int K, ans = 0;
cin >> K;
string S = "12345678";
do {
ans += stoi(S) % K ? 0 : 1;
} while (next_permutation(S.begin(), S.end()));
cout << ans << endl;
}
hatsuka_iwa