結果

問題 No.3023 素数判定するだけ
ユーザー 6soukiti296soukiti29
提出日時 2017-04-01 00:11:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 427 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,880 KB
実行使用メモリ 8,880 KB
最終ジャッジ日時 2023-09-22 02:03:22
合計ジャッジ時間 5,226 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,812 KB
testcase_01 AC 20 ms
8,812 KB
testcase_02 AC 19 ms
8,852 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 19 ms
8,740 KB
testcase_06 AC 20 ms
8,816 KB
testcase_07 AC 19 ms
8,840 KB
testcase_08 AC 19 ms
8,856 KB
testcase_09 AC 19 ms
8,700 KB
testcase_10 AC 19 ms
8,672 KB
testcase_11 AC 19 ms
8,804 KB
testcase_12 AC 19 ms
8,872 KB
testcase_13 AC 20 ms
8,880 KB
testcase_14 WA -
testcase_15 AC 19 ms
8,816 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 20 ms
8,812 KB
testcase_19 WA -
testcase_20 AC 19 ms
8,852 KB
testcase_21 AC 19 ms
8,744 KB
testcase_22 AC 21 ms
8,868 KB
testcase_23 AC 20 ms
8,864 KB
testcase_24 AC 19 ms
8,684 KB
権限があれば一括ダウンロードができます

ソースコード

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