結果

問題 No.3383 1122-like Number (C++)
コンテスト
ユーザー okkuu
提出日時 2025-11-22 14:58:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 183 bytes
コンパイル時間 1,838 ms
コンパイル使用メモリ 194,624 KB
実行使用メモリ 11,048 KB
最終ジャッジ日時 2025-11-22 14:58:54
合計ジャッジ時間 5,413 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 TLE * 1
other -- * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    3 | main(){cin>>m;for(;l<=m;l++){d=0;n=l;for(int i=2;i<=n;i++){if(n%i==0){n/=i,d++;if(n%i==0)d=0,i=n+1;}}c+=d==4;}cout<<c<<'\n';}
      | ^~~~

ソースコード

diff #
raw source code

#import<bits/stdc++.h>
using namespace std;int m,n,l,c,d;
main(){cin>>m;for(;l<=m;l++){d=0;n=l;for(int i=2;i<=n;i++){if(n%i==0){n/=i,d++;if(n%i==0)d=0,i=n+1;}}c+=d==4;}cout<<c<<'\n';}
0