結果
問題 |
No.8101 砂嵐
|
ユーザー |
![]() |
提出日時 | 2023-03-20 23:25:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 895 ms |
コンパイル使用メモリ | 80,600 KB |
最終ジャッジ日時 | 2025-02-11 15:41:42 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 62 |
ソースコード
#pragma GCC optimize("O0") #include <iostream> using namespace std; using ll=long long; int main(){ ll N; cin>>N; ll x=N; ll ans=0; while(x>=10){ ll t=1; while(x>0){ t*=x%10; x/=10; } x=t; ans++; } cout<<ans<<endl; }