Beecrowd Solution/URI Solution
Online Judge (BOJ) is a platform for programming contests and challenges. Here are some good things about BOJ:
- Large community: BOJ has a large community of programmers and enthusiasts who participate in challenges and competitions, providing opportunities for learning and collaboration.
- Variety of programming languages: BOJ supports a wide range of programming languages, including popular ones like C++, Java, Python, and more.
- Detailed feedback: BOJ provides detailed feedback on submissions, including runtime and memory usage, as well as error messages, helping users to learn and improve their programming skills.
- Customizable settings: BOJ allows users to customize their settings, including language preferences and compiler options, making it a flexible platform for individual needs.
URI 1161-Factorial Solution with CPP
#include<iostream>
using namespace std;
int main() {
long long int m,n,f=1,f1=1; while(cin>>m>>n){ for(int i=1;i<=m;i++) { f=f*i; } for(int j=1;j<=n;j++) { f1=f1*j;// }
long long int sum=f+f1; cout<<sum<<endl; f=f1=1;
} return 0; cout<<endl; }
1177-Array Fill II solution with c//Beecrowd solution
#include<stdio.h> int main() { int a[1000],i,j,n; scanf("%d",&n); for(i=0,j=0;i<1000;i++){ printf("N[%d] = %d\n",i,j); j++; if(n==j) j=0; } return 0; }