1 solutions
-
0
C++ :
#include<iostream> using namespace std; int main() { int i,a; a=0; for(i=6; i<=320; ++i) if(i%2==1&&i%3==1&&i%5==1) {a++; if(a<10) cout<<i<<" "; else cout<<i;} return 0; }Pascal :
PROGRAM AA; BEGIN WRITELN('31 61 91 121 151 181 211 241 271 301');END.
- 1
Information
- ID
- 16277
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By