結果
| 問題 |
No.1514 Squared Matching
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-07-07 11:36:51 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 2,004 ms |
| コンパイル使用メモリ | 191,128 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-07-07 11:36:59 |
| 合計ジャッジ時間 | 7,173 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 25 |
ソースコード
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, cnt = 0;
signed main() {
cin >> n;
for (int i = 1; i * i <= n; i++) {
int k = i * i;
for (int j = 1; j * j <= k; j++) {
if (k % j == 0 && k / j <= n) cnt++;
}
}
cout << cnt;
}
vjudge1