Submission #1067350
Source Code Expand
#include <bits/stdc++.h> using namespace std; unsigned long long fact(int); int main(){ int n; unsigned long long num=0; cin>>n; unsigned long long f = fact(n); cout <<f <<endl; for(int i=1;i<int(sqrt(f)+1e-9)+1;i++){ if(f%i == 0){ num++; if(f != i*i) num++; } } cout << num % (1000000000 + 7) <<endl; return 0; } unsigned long long fact(int n){ if(n == 1) return 1; else return n*fact(n-1); }
Submission Info
Submission Time | |
---|---|
Task | A - Two Rectangles |
User | tencha |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 472 Byte |
Status | WA |
Exec Time | 3 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | subtask_1_abmax_01.txt, subtask_1_allmax_01.txt, subtask_1_cdmax_01.txt, subtask_1_rand_01.txt, subtask_1_rand_02.txt, subtask_1_rand_03.txt, subtask_1_same_01.txt, subtask_1_same_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 2 ms | 256 KB |
sample_02.txt | WA | 3 ms | 256 KB |
subtask_1_abmax_01.txt | WA | 2 ms | 256 KB |
subtask_1_allmax_01.txt | WA | 3 ms | 256 KB |
subtask_1_cdmax_01.txt | WA | 3 ms | 256 KB |
subtask_1_rand_01.txt | WA | 3 ms | 256 KB |
subtask_1_rand_02.txt | WA | 3 ms | 256 KB |
subtask_1_rand_03.txt | WA | 2 ms | 256 KB |
subtask_1_same_01.txt | WA | 3 ms | 256 KB |
subtask_1_same_02.txt | WA | 3 ms | 256 KB |