1 条题解
-
0
C++ :
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int s,n; int main() { cin>>s; n=s*1000+s; n=n/1001; cout<<n; return 0; }
Java :
import java.util.Scanner; public class Main{ public static void main (String[] args){ try (Scanner in = new Scanner(System.in)) { int x = in.nextInt(); int a,b,c; long y,d; if( x >= 100 && x <1000) { a = x / 100; b = x / 10 % 10; c = x % 10; y = a * 100000 + b * 10000 + c * 1000 + x; d = y / 7 / 11 / 13; System.out.println(d); } } } }
- 1
信息
- ID
- 2781
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者