littlecoderrr

@littlecoderrr

競程廢物. ig:eric_950922

Joined on Feb 13, 2023

  • 技巧 練習題目 第一周 模板 (https://zerojudge.tw/ShowProblem?problemid=a001) 第二周 C++語法 無
     Like 1 Bookmark
  • #include<iostream> using namespace std; int f(int stepp){ if(stepp==1){ return 1; } else if(stepp==2){ return 2; } else if(stepp==3){
     Like  Bookmark
  • 行程 :::danger https://www.funliday.com/m_NjYxMzZiNGQ0ZGQxZTBkMWRkNDMxNWMy0/trips/66136b844dd1e0d1dd4315ee ::: 交通 電車 :::warning :::
     Like  Bookmark
  • 學習資源與題單 學習資源: https://hackmd.io/@LittlePants/Hyw_rueGK (新手村) https://yuihuang.com/about (竹女黃惟甚麼都有的blog) https://hackmd.io/@sa072686/cp/%2Fa- (完整的語法教學&演算法教學) https://www.csie.ntu.edu.tw/~b98902112/cpp_and_algo/ (基礎語法&演算法)
     Like 5 Bookmark
  • 主題發想 竹北天坑 河川汙染 能源 垃圾處理 交通安全
     Like  Bookmark
  • #include<bits/stdc++.h> using namespace std; int main() { srand(time(0)); int board[15][15] = {}; constexpr int dirs[5] = {0, 1, 0, -1, 0}; while (1) { for (int i = 0; i < 15; i++) { for (int j = 0; j < 15; j++) {
     Like  Bookmark
  • #include<iostream> using namespace std; int main(){ int n; cin>>n; int ans=0; if(n%5==0){ ans=500; } else if(n%2==0){
     Like  Bookmark
  • 第一題 #include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll a,b,c,d,e; cin>>a>>b>>c>>d>>e; if((b+c+d+e)<a){ cout<<b+c+d+e<<endl; }
     Like  Bookmark
  • 此題可以使用一個陣列來存放所有數字相加的總和 載判斷是否有重複的數字出現 #include<bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll n; ll flag =0; ll nn=0;
     Like  Bookmark
  • :::spoiler from blade import Blade def main(args): Blade.of() \ .get("/login", lambda ctx: ctx.render("login.html")) \ .get("/logout", lambda ctx: ( ctx.session().remove("login_user"), ctx.redirect("/login")
     Like  Bookmark
  • Web VPython 3.2 from vpython import * m = 1 l0 = 1 k = 100 scene = canvas( background=vec(0.7, 0.7, 0.9), center=vec(0, -1, 0), width=600, height=700 )
     Like  Bookmark
  • #include <iostream> #include <cmath> using namespace std; bool isClose(double a, double b) { const double epsilon = 1e-6; return fabs(a - b) < epsilon; }
     Like  Bookmark
  • 有任何錯誤請多多指教 可以私我ig:eric_950922與我告知 也歡迎熱愛競程的可以來交個朋友? 第一題 難度:4/5(與考古題比較) https://zerojudge.tw/ShowProblem?problemid=k731 想法 考試當下我看到時花了點時間在想,我認為此題是在歷年來中屬於較難的第一題,而這次與上次題目都是屬於座標題,建議新手可以拿起紙筆實際模擬一次會對於思考有很大的幫助!
     Like 1 Bookmark
  • 冒泡演算法(Bubble sort) v[0]跟v[1]比 如果v[0]比較大就機換位置 #include<bits/stdc++.h> using namespace std; void bubblesort(vector<int> &vt){ for(int i=0;i<vt.size()-1;++i){ for(int j=0;j<vt.size()-1;++j){ if(vt[j]>vt[j+1]){
     Like 2 Bookmark
  • #include<bits/stdc++.h> using namespace std; int main (){ int n; cin>>n; int t=0,tt=0; vector<int>a; vector<int>b; vector<int>c; vector<int>d;
     Like 2 Bookmark
  • #include<bits/stdc++.h> using namespace std; int main(){ int R,C,k,m,w=0; int ma=0,mi=99; int temp[100][100]; int a[100][100]; cin>>R>>C>>k>>m; for(int i=0;i<R+2;++i){ for(int j=0;j<C+2;++j){
     Like 1 Bookmark
  • #include <iostream> using namespace std; int main() { int n,g=0; cin>>n; for(int i=0;i<n;++i){ int a[2][7];
     Like 2 Bookmark