#25399: 測資範圍有錯


810416@fhsh.khc.edu.tw (Eric_hung)

School : 國立鳳新高級中學
ID : 118851
IP address : [140.116.118.9]
Last Login :
2022-11-09 15:13:56
b288. 夏季大三角 -- 103學年度板橋高中校內資訊學科能力競賽(一) | From: [101.9.236.38] | Post Date : 2021-05-19 01:15

n不只1000

 
#26529: Re:測資範圍有錯


tony20040424@gmail.com (DT)

School : 國立嘉義高級中學
ID : 102277
IP address : [36.236.14.205]
Last Login :
2021-12-25 20:18:20
b288. 夏季大三角 -- 103學年度板橋高中校內資訊學科能力競賽(一) | From: [111.242.122.74] | Post Date : 2021-08-11 21:47

n不只1000

應該是1000以內,以下是我的測試用程式碼,並沒有TLE出現

 

 

#include<iostream>

 

using namespace std;

 

int main()

{

  int n = 0;

  cin>>n;

  if(n>1000) while(true){}

}

 
ZeroJudge Forum