#37667: au/ a/fh;v ,n;kj


yp11251273@yphs.tp.edu.tw (704-31張鈞勉)

學校 : 臺北市私立延平高級中學
編號 : 239174
來源 : [203.72.178.1]
最後登入時間 :
2024-06-18 17:44:30
a216. 數數愛明明 | From: [203.72.178.1] | 發表日期 : 2023-09-26 17:37

#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }

 
ZeroJudge Forum