package com.lsy.leetcodehot100;public class _Hot1_两数之和 {//自写方法public static int[] twoSum1(int[] nums, int target) {//定义存放返回变量的数组int[] arr = new int[2];//遍历整个数组for (int i = 0; i < nums.length; i++) {
#include<stdio.h> int main() { int s; scanf("%d",&s); while(s--) { long long n,a,b; scanf("%lld",&n); a=n/5+n/6+n/8; b=n/30+n/24+n/40-n/120; printf("%lld\n",n-a+b);