結果

問題 No.3098 tan 2
ユーザー 👑 timitimi
提出日時 2023-03-31 21:51:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 81,632 KB
実行使用メモリ 53,344 KB
最終ジャッジ日時 2023-10-24 07:44:27
合計ジャッジ時間 1,666 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,344 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 39 ms
53,344 KB
testcase_04 WA -
testcase_05 AC 39 ms
53,344 KB
testcase_06 WA -
testcase_07 AC 39 ms
53,344 KB
testcase_08 AC 39 ms
53,344 KB
testcase_09 AC 39 ms
53,344 KB
testcase_10 WA -
testcase_11 AC 38 ms
53,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I=int(input())
D={}
D[I]=0
now=I
for i in range(1000):
  nex=(now*2)%180
  if nex in D:
    break 
  D[nex]=i+1
  now=nex 
if 45 in D:
  print('Yes')
else:
  print('No')
0