fork(1) download
  1. #include <iostream>
  2.  
  3. int main() {
  4. unsigned year = 2100;
  5. std::cout << ((year % 4 == 0) ^ (year % 100 == 0) ^ (year % 400 == 0)) << std::endl;
  6. return 0;
  7. }
Success #stdin #stdout 0s 4304KB
stdin
Standard input is empty
stdout
0