Re: [閒聊] 每日leetcode已回收
#include<iostream>
#include<string>
string details;
int count;
int years;
count=0;
while(cin>>string){
years=0;
years=((string[11]-'0')*10+(string[12]-'0'))
if(years>60||years==60)
count++;
}
cout<<count<<endl;
這樣不知道給不給過
我猜會吃compile error
唉
當初就不該去讀三類的
讀三類幹什麼
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 133.106.32.9 (日本)
※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1722472439.A.4E0.html
→
08/01 08:34,
1年前
, 1F
08/01 08:34, 1F
→
08/01 08:34,
1年前
, 2F
08/01 08:34, 2F
→
08/01 08:34,
1年前
, 3F
08/01 08:34, 3F
→
08/01 08:35,
1年前
, 4F
08/01 08:35, 4F
→
08/01 08:35,
1年前
, 5F
08/01 08:35, 5F
→
08/01 08:37,
1年前
, 6F
08/01 08:37, 6F
→
08/01 08:38,
1年前
, 7F
08/01 08:38, 7F
→
08/01 08:39,
1年前
, 8F
08/01 08:39, 8F
討論串 (同標題文章)
完整討論串 (本文為第 609 之 1552 篇):