Submission #425464

#TimeUsernameProblemLanguageResultExecution timeMemory
425464errorgornPalindromic FizzBuzz (NOI19_palindrome)C++17
0 / 100
1 ms332 KiB
#include <cstdio> using namespace std; long long a,b,s,e; int main(){ scanf("%lld%lld%lld%lld",&s,&e,&a,&b); for (long long x=s;x<=e;x++){ if (x%a==0 && x%b==0) printf("FizzBuzz\n"); else if (x%a==0) printf("Fizz\n"); else if (x%b==0) printf("Buzz\n"); else printf("%lld\n",x); } }

Compilation message (stderr)

palindrome.cpp: In function 'int main()':
palindrome.cpp:5:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    5 |     scanf("%lld%lld%lld%lld",&s,&e,&a,&b);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...