結果
問題 | No.2480 Sequence Sum |
ユーザー |
![]() |
提出日時 | 2023-10-03 23:08:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 533 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-26 14:13:56 |
合計ジャッジ時間 | 2,136 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 12 |
ソースコード
###↓自分で書いてみたが、TLEになってしまった # N = int(input()) ##自然数N # count = 1 ##Nの約数の数を数える変数 # for i in range(int(N/2)): # if N % (i+1) == 0: # count += 1 # print(N-count)##約数でない数を出力する import sys input = sys.stdin.readline N = int(input()) ##自然数N count = 1 ##Nの約数の数を数える変数 for i in range(1,int(N/2)+1): if N % (i) == 0: count += 1 print(N-count)##約数でない数を出力する