結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-07-15 15:57:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-10-08 02:27:48 |
合計ジャッジ時間 | 3,945 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 9 TLE * 1 -- * 16 |
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){ | ^~~~ main.cpp: In function ‘int main()’: main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%lld",&N); | ~~~~~^~~~~~~~~~~
ソースコード
#include<stdio.h> main(){ long long N; scanf("%lld",&N); int count = 0; for(int i = 1;i*i<=N;i++){ if(N%i == 0){ count += (i*i==N?1:2); } } printf("%d\n",count); }