#13064: 輸出五行???


lol59487 (Astrayt)

學校 : 臺北市立建國高級中學
編號 : 69066
來源 : [27.125.151.250]
最後登入時間 :
2024-05-02 23:08:26

不知為何有五行輸出

#include <iostream>
#include <string>
using namespace std;
int main(int argc, char** argv) {
long long int a;
while(cin>>a){
string b;
if(a%3!=0) b="no";
else b="yes";
cout<<b<<endl;
}
}

#13069: Re:輸出五行???


lol59487 (Astrayt)

學校 : 臺北市立建國高級中學
編號 : 69066
來源 : [27.125.151.250]
最後登入時間 :
2024-05-02 23:08:26

不知為何有五行輸出

#include
#include
using namespace std;
int main(int argc, char** argv) {
long long int a;
while(cin>>a){
string b;
if(a%3!=0) b="no";
else b="yes";
cout<<b<<endl;
}
}



修正

是輸出四行

#13070: Re:輸出五行???


nkavengertree (LaG)

學校 : 不指定學校
編號 : 62501
來源 : [49.216.191.28]
最後登入時間 :
2021-11-21 03:06:49

不知為何有五行輸出

#include
#include
using namespace std;
int main(int argc, char** argv) {
long long int a;
while(cin>>a){
string b;
if(a%3!=0) b="no";
else b="yes";
cout<<b<<endl;
}
}



修正

是輸出四行

long long :  –9,223,372,036,854,775,808 到 9,223,372,036,854,775,807

題目       : n (-10^10001<=n<=10^10001)
好像裝不下喔