#10599: 為什麼輸出短少QAQ~


kevin920718 (香草)


這樣不行嗎??

#include <iostream>
using namespace std;

int main(int argc, char** argv) {
int y;
cin >> y;
if((y%4==0&&y&100!=0)||y%4==0)
cout << "閏年";
else
cout << "平年";
return 0;
}

#10600: Re:為什麼輸出短少QAQ~


kevin920718 (香草)


這樣不行嗎??

#include
using namespace std;

int main(int argc, char** argv) {
int y;
cin >> y;
if((y%4==0&&y&100!=0)||y%4==0)
cout << "閏年";
else
cout << "平年";
return 0;
}

我發現打錯了不用理我!