1 solutions
-
0
C :
#include<stdio.h> int main() { int i=100; while((i%3==2 && i%5==3 && i%7==5)!=1) i++; printf("%d",i); }
C++ :
#include <iostream> #include <iomanip> using namespace std; int main(){ int i; for(i=100;i<=100000000;i++){ if(i%3==2&&i%5==3&&i%7==5){ cout<<i<<endl; break; } } }
Python :
s=100 while s<200: if s%3==2 and s%5==3 and s%7==5: print(s) s+=1
- 1
Information
- ID
- 10843
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By