結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2025-01-14 12:25:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 1,582 ms |
コンパイル使用メモリ | 58,112 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-14 12:25:30 |
合計ジャッジ時間 | 2,817 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 13 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:11:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%lld",&n); | ~~~~~^~~~~~~~~~~
ソースコード
#include<iostream>#define rep(i,n) for(i=0;i<(int)(n);i++)using namespace std;typedef long long ll;typedef unsigned long long ull;ll n;int main(){int i,j=0;scanf("%lld",&n);for(i=1;i<(n+i-1)/i;i++)j+=2*(n%i==0);j+=i==n/i;printf("%d\n",j);return 0;}