結果
問題 | No.3035 2018 |
ユーザー | weizen |
提出日時 | 2018-04-02 23:33:13 |
言語 | C++11 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 25,692 KB |
実行使用メモリ | 8,756 KB |
最終ジャッジ日時 | 2023-09-08 13:45:10 |
合計ジャッジ時間 | 3,757 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
8,756 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
ソースコード
#include <stdio.h> int num_divisor(int n){ int i=0,count=0,s=0; for(i=1;i<=n;i++){ if(n%i==0){ s=s+i; count++; } } return count; } int main(void){ int N; scanf("%d",&N); int count = 0; int n = 0; while(count != N){ if(num_divisor(++n) == 4) ++count; } printf("%d\n",n); return 0; }