#14429: 這樣會TLEㄟ為甚麼??


s940063t (lihchyi)

學校 : 元智大學
編號 : 77006
來源 : [220.135.42.39]
最後登入時間 :
2018-12-18 00:46:20
d235. 10929 - You can say 11 -- UVa10929 | From: [220.135.103.225] | 發表日期 : 2018-07-17 09:55

#include <iostream>
using namespace std;
int main()
{
long long int num;
while (true)
{
cin >> num;

if (num == 0)
{
break;
}
if (num % 11 == 0)
{
cout <<num<< " is a multiple of 11." << endl;
}
else
{
cout << num << " is not a multiple of 11." << endl;
}
}
}

 
ZeroJudge Forum