发布网友 发布时间:2022-04-21 04:35
共2个回答
懂视网 时间:2022-04-21 08:57
SGU - 105 Div 3
Submit Status
Description
There is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Given first N elements of that sequence. You must determine amount of numbers in it that are divisible by 3. Input Input contains N (1<=N<=231 - 1). Output Write answer to the output. Sample Input Sample Output Source |
数学题!找规律!
规律:0,1,1,0,1,1,0,1,1,0,1,1.... (0代表不能被3整除,1代表能被3整除!)
AC代码:
#include#include #include #include #include using namespace std;int main(){ int n; scanf("%d", &n); int ans = 0; ans += (n/3)*2; if(n%3==2) ans++; printf("%d ", ans); return 0;}
热心网友 时间:2022-04-21 06:05
早稻田大学sgu有本科硕士博士项目,同时还有很多专业,各个要求都不一样,我简单给你讲一下:
1) 托福-iBT(接受托福 iBT Special Home Edition,不接受托福-ITP。);送分码9342;不接收拼分。
2)托业 L&R(不接受托业-IP)
3)雅思(Academic)或雅思(Indicator)
英语成绩方面需要提交:托福(iBT)/托业/雅思(Academic)/GRE/MAT/GMAT/LSAT;
所以具体情况具体分析,得看你想申请哪个。