結果
問題 |
No.2751 429-like Number
|
ユーザー |
|
提出日時 | 2025-05-18 23:53:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 447 bytes |
コンパイル時間 | 1,297 ms |
コンパイル使用メモリ | 66,504 KB |
実行使用メモリ | 10,916 KB |
最終ジャッジ日時 | 2025-05-18 23:53:34 |
合計ジャッジ時間 | 7,303 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 TLE * 1 -- * 1 |
other | -- * 22 |
ソースコード
#include <iostream> using namespace std; int main() { int Q; cin >> Q; while (Q--) { int A; cin >> A; int count = 0; for (int i = 2; i <= A; ++i) { while (A % i == 0) { count++; A /= i; } } if (count == 3) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }