Submission #4319924
Source Code Expand
#include<bits/stdc++.h> #define int long long #define mod 1000000007 int C(int a,int b){ int ans=1; for(int i=1;i<=k;i++) (ans*=a-i+1)/=i; return ans; } signed main(){ int n,m; scanf("%lld%lld",&m,&n); int k=n%m;//C(m,k) printf("%lld",C(m,k)); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 高橋幼稚園 |
User | luogu_bot3 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 295 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘long long int C(long long int, long long int)’: ./Main.cpp:6:20: error: ‘k’ was not declared in this scope for(int i=1;i<=k;i++) ^ ./Main.cpp: In function ‘int main()’: ./Main.cpp:12:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld%lld",&m,&n); ^