×
解除綁定,重新設定系統帳號的密碼
您的系統帳號 ID:
您的系統帳號:
您的帳號暱稱:
設定新密碼:
設定新密碼:
×
請輸入要加入的「課程代碼」
請向開設課程的使用者索取「課程代碼」
Problems
Submissions
Rank
Forum
Contest
Login
Register
New Thread
#8845: 為什麼一直TLE?
frank73255
(ya~~)
School : 臺北市立成功高級中學
ID : 41002
×
傳送站內訊息
To:
Subject:
Content:
IP address : [36.229.140.230]
Last Login :
2018-01-30 23:59:44
a861.
1. Secure the Perimeter
--
HP CodeWars
2010
| From: [114.25.235.167] | Post Date : 2014-06-01 23:31
#include <iostream>
#include <cstdlib>
#include <stdio.h>
using namespace std;
int main()
{
int h, w;
while(1){
scanf("%d %d", &h, &w);
printf("%d\n", 2*h+2*w);
}
return 0;
}
為什麼一直TLE???請各位大大幫幫忙><!!
#8860: Re:為什麼一直TLE?
b821213
(後繼無人)
School : 臺南市私立興國高級中學
ID : 9916
×
傳送站內訊息
To:
Subject:
Content:
IP address : [157.107.107.134]
Last Login :
2021-09-14 02:53:36
a861.
1. Secure the Perimeter
--
HP CodeWars
2010
| From: [140.112.248.253] | Post Date : 2014-06-07 13:30
while(1){
因為你這句,他會永遠讀個沒停。我想你需要的也許是判斷 EOF 而不是無限地讀取?
ZeroJudge Forum