|
多谢前辈%%%
题目 2122 [CEOI1999][POJ1379]逃离陷阱
2024-07-30 20:50:06
|
|
一发AC
|
|
注意mod的是2^k不是k
![]() |
|
注意算斜率时的数据处理,这有一组数据给的太巧了
![]() |
|
∑
题目 1111 [福州培训2010] 最短路
2024-07-24 22:44:42
|
|
题目 3554 [模板]求素数
2024-07-23 18:27:54
|
|
题目 3927 [CSP 2023J]小苹果
2024-07-23 11:00:48
|
|
#include<bits/stdc++.h>
using namespace std; int main() { freopen("apple.in","r",stdin); freopen("apple.out","w",stdout); long long int n,date=0,ans[10000],i=0; cin>>n; while(n>0) { date++; if(n%3==1) { i++; ans[i]=date; } n=n-ceil(n*1.0/3); } cout<<date<<" "<<ans[1]; fclose(stdin);fclose(stdout); return 0; }
题目 3927 [CSP 2023J]小苹果
2024-07-23 08:29:39
|
|
题目 3927 [CSP 2023J]小苹果
2024-07-22 11:13:31
|
|
我嘞个雷
|
|
#include<bits/stdc++.h>
using namespace std; int main() { int a,b; freopen("aplusb.in","r",stdin); freopen("aplusb.out","w",stdout); cin>>a>>b; cout<<a+b; fclose(stdin); fclose(stdout); return 0; } 这个水体有点儿水
题目 1 加法问题
2024-07-22 10:13:13
|
|
题目 3927 [CSP 2023J]小苹果
2024-07-22 10:06:08
|
|
#include<bits/stdc++.h>
using namespace std; int main() {freopen("csp2022pj_pow.in","r",stdin); freopen("csp2022pj_pow.out","w",stdout); int a,b; cin>>a>>b; if(pow(a,b)<1000000000) cout<<int(pow(a,b)); else cout<<"-1"; fclose(stdin);fclose(stdout); return 0;} |
|
666
|
|
1
题目 3375 [NOI Online 2020 1st PJ]文具订购(民间数据)
2024-07-21 11:22:12
|
|
求教程!!!
题目 3375 [NOI Online 2020 1st PJ]文具订购(民间数据)
2024-07-21 11:18:22
|
|
![]()
页面 16 [题目] 历年 NOIP/CSP 试题
2024-07-21 11:16:48
|
|
挺简单
|
|
题太水 答案供参考
#include <bits/stdc++.h> using namespace std; int main() { string s; int i,n,st,s1=0; freopen("csp2019pj_number.in","r",stdin); freopen("csp2019pj_number.out","w",stdout); getline(cin,s); st=s.length(); for(i=0;i<=st-1;i++) if(s[i]=='1') s1++; if(s1==0) cout<<'0'; else cout<<s1; fclose(stdin); fclose(stdout); }
题目 3285 [CSP 2019J]数字游戏
2024-07-21 10:40:26
|
|
#include<bits/stdc++.h>
using namespace std; int main() {freopen("title.in","r",stdin); freopen("title.out","w",stdout); char st[200];int sum; while(scanf("%s",st)==1) sum+=strlen(st); cout<<sum; }
题目 3049 [NOIP 2018PJ]标题统计
2024-07-21 10:20:47
|