Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95056 谢绍澜 神秘数字 C++ Wrong Answer 1 MS 268 KB 426 2024-10-26 17:23:47

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n; cin>>n; for(int i=5;;i++){ if(i%3==2&&i%5==2&&i%7==2&&i>n){ cout<<i; return 0; } } return 0; }


Run Info:

------Input------
274
------Answer-----
338
------Your output-----
317