結果

問題 No.2785 四乗足す四の末尾の0
ユーザー 👑 p-adicp-adic
提出日時 2023-07-23 14:26:44
言語 cLay
(20240420-1)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 4,535 ms
コンパイル使用メモリ 173,652 KB
実行使用メモリ 5,152 KB
最終ジャッジ日時 2023-10-24 20:45:36
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,372 KB
testcase_01 AC 2 ms
4,372 KB
testcase_02 AC 1 ms
4,372 KB
testcase_03 AC 2 ms
4,372 KB
testcase_04 AC 2 ms
4,372 KB
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 1 ms
4,372 KB
testcase_07 AC 1 ms
4,372 KB
testcase_08 AC 1 ms
4,372 KB
testcase_09 AC 2 ms
4,372 KB
testcase_10 AC 2 ms
4,372 KB
testcase_11 AC 1 ms
4,372 KB
testcase_12 AC 1 ms
4,372 KB
testcase_13 AC 2 ms
4,372 KB
testcase_14 AC 2 ms
4,372 KB
testcase_15 AC 8 ms
4,860 KB
testcase_16 AC 2 ms
4,372 KB
testcase_17 AC 9 ms
5,152 KB
testcase_18 AC 8 ms
5,152 KB
testcase_19 AC 9 ms
5,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@T,p[2]={2,5};rep(T){ll@N,M=N*N+2;if(M!=3){ll c[2]={},f[2]={M+2*N,M-2*N};rep(i,2)rep(j,2)while(f[i]%p[j]<1)f[i]/=p[j],c[j]++;wtLn("No",min(c[0],c[1]));}else wtLn("Yes",0);}
0