結果

問題 No.1664 Unstable f(n)
ユーザー Aoi49021399
提出日時 2021-09-03 21:27:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-15 10:00:23
合計ジャッジ時間 2,819 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
if n == 1:
	print(1)
	exit()
if n == 2:
	print(2)
	exit()
if n == 3:
	print(3)
	exit()

print(2 + int(math.sqrt(n)) + (n - int(math.sqrt(n)) ** 2))
0