結果
| 問題 |
No.3079 Unite Japanese Prefectures
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 21:54:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 81,672 KB |
| 実行使用メモリ | 68,584 KB |
| 最終ジャッジ日時 | 2025-04-15 21:56:40 |
| 合計ジャッジ時間 | 2,719 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 27 |
ソースコード
import sys
def main():
input = sys.stdin.read().split()
T = int(input[0])
cases = list(map(int, input[1:T+1]))
maxN = 10**5
div_count = [0] * (maxN + 1)
for i in range(1, maxN + 1):
for j in range(i, maxN + 1, i):
div_count[j] += 1
for n in cases:
print(div_count[n] - 1)
if __name__ == "__main__":
main()
lam6er