結果

問題 No.8114 Prime Checker+1
ユーザー 1あ
提出日時 2025-02-21 13:59:05
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2025-02-21 13:59:09
合計ジャッジ時間 3,062 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

n=list(input())
if len(n)==1 and n[0]=='2':
	print('0')
	print('Yes')
else:
	N=int(n[-1])
	if N%2!=0:
		print('1')
		print('No')
	else:
		print('0')
		print('No')
0