結果
問題 |
No.888 約数の総和
|
ユーザー |
![]() |
提出日時 | 2025-07-07 23:35:41 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 4,177 ms |
コンパイル使用メモリ | 208,976 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-07 23:35:49 |
合計ジャッジ時間 | 5,533 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 30 |
ソースコード
#include <bits/stdc++.h> using namespace std; long long n; int main() { cin>>n; for(int i=2;i<=sqrt(n);i++) { int dem=0; if(n%i==0) { while(n%i==0) { n/=i; dem++; }cout<<i<<" "<<dem<<endl; } } if(n!=1) cout<<n<<" "<<"1"; return 0; }