Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152380 杨峻熙 美丽数 C++ Time Limit Exceeded 1000 MS 272 KB 264 2026-04-25 16:44:07

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int count=0; int num=0; while(true){ num++; if(num%3==0||num%5==0){ count++; if(count==n){ break; } } } cout<<num<<endl; } return 0; }