結果
問題 |
No.1514 Squared Matching
|
ユーザー |
![]() |
提出日時 | 2021-05-24 16:02:08 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 1,193 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 59,220 KB |
最終ジャッジ日時 | 2024-10-13 00:23:04 |
合計ジャッジ時間 | 5,792 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 24 |
ソースコード
n = int(input()) num = 0 x = 1 for i in range(1,n+1): sq = (~i)**2 if sq > n: break else: x += 1 for j in range(i+1,n+1): if j*sq <= n: num += 1 print(2*num + n + x*(x-1))