結果
問題 |
No.2785 四乗足す四の末尾の0
|
ユーザー |
![]() |
提出日時 | 2024-06-19 02:54:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 304 ms / 2,000 ms |
コード長 | 255 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-19 02:55:00 |
合計ジャッジ時間 | 3,270 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
import sys input = sys.stdin.readline T=int(input()) for tests in range(T): N=int(input()) if abs(N)==1: print("Yes") else: print("No") x=N**4+4 ANS=0 while x%10==0: ANS+=1 x//=10 print(ANS)