結果

問題 No.3023 素数判定するだけ
ユーザー 6soukiti296soukiti29
提出日時 2017-04-01 00:11:41
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 427 bytes
コンパイル時間 63 ms
使用メモリ 8,296 KB
最終ジャッジ日時 2023-02-11 01:47:46
合計ジャッジ時間 4,976 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 17 ms
8,244 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 18 ms
8,244 KB
testcase_06 AC 18 ms
8,136 KB
testcase_07 AC 18 ms
8,048 KB
testcase_08 AC 17 ms
8,052 KB
testcase_09 AC 17 ms
8,184 KB
testcase_10 AC 17 ms
8,056 KB
testcase_11 AC 17 ms
8,188 KB
testcase_12 AC 17 ms
8,136 KB
testcase_13 AC 17 ms
8,244 KB
testcase_14 WA -
testcase_15 AC 17 ms
8,056 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 17 ms
8,136 KB
testcase_19 WA -
testcase_20 AC 17 ms
8,248 KB
testcase_21 AC 17 ms
8,192 KB
testcase_22 AC 17 ms
8,240 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import datetime
today = datetime.date.today()
todaydetail = datetime.datetime.today()
a = sum([today.day,today.day])
A = [a]
i = sum([today.day,a])
c = todaydetail.hour
Z = int(input())
while i <= Z:
	j = todaydetail.hour
	for a in A:
		if i % a == c:
			j = today.day
			break
		if pow(a,a) > i:
			break
	
	if j == c:
		A.append(i)
	i = sum([i,today.day])
A = list(map(str,A))
if str(Z) in A:
	print("YES")
else:
	print("NO")
0