結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2018-10-06 18:58:41 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 444 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 28,416 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-10-12 13:53:47 |
合計ジャッジ時間 | 4,106 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 10 TLE * 1 -- * 15 |
ソースコード
#include <stdio.h> int main(void){ long int N; long int i; // subscript long int count = 0; long int I; // subscript2 scanf("%ld",&N); // 0で割らないようにする I = 1; for(i = 1; i < N/I + N%I; i++){ if(N % i == 0){ count++; I = i; if(N / i != i){ count++; } } } printf("%ld\n",count); return 0; }