結果
問題 |
No.2552 Not Coprime, Not Divisor
|
ユーザー |
|
提出日時 | 2023-11-25 15:28:05 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 165 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 82,636 KB |
実行使用メモリ | 74,944 KB |
最終ジャッジ日時 | 2024-09-26 10:52:14 |
合計ジャッジ時間 | 6,718 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 24 |
ソースコード
from math import gcd n = int(input()) ans = 0 for x in range(2, n): for y in range(x + 1, n + 1): if 1 < gcd(x, y) < x: ans += 1 print(ans)