1 solutions
-
0
C :
#include<stdio.h> #include<string.h> int main() { int n,ge,shi,bai; for(n=100;n<1000;n++) { ge=n%10; shi=n/10%10; bai=n/100; if(n/11==ge+shi+bai&&n%11==0){ printf("%d\n",n); break; } } return 0; }C++ :
#include<bits/stdc++.h> using namespace std; int a,b; int main() { cout<<"198"; return 0; }Pascal :
begin writeln(198); end.
- 1
Information
- ID
- 17526
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By