From c1861fc13b4df9db53166e310add3bca53245170 Mon Sep 17 00:00:00 2001 From: LHY3015 <186386042+lhy3015@users.noreply.github.com> Date: Thu, 5 Jun 2025 22:20:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E7=BB=9F=E4=B8=80=E4=B8=BAUTF-8,=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BA=86=E5=85=8B=E9=9A=86=E4=BB=93=E5=BA=93=E5=88=B0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=90=8E=E4=B8=AD=E6=96=87=E6=B3=A8=E9=87=8A=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20Changed=20encoding=20format=20to=20UTF-8=20uniforml?= =?UTF-8?q?y,=20fixed=20the=20issue=20where=20Chinese=20comments=20might?= =?UTF-8?q?=20display=20abnormally=20after=20cloning=20locally.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4345円222円214円350円231円253円345円255円220円.cpp" | 4 +- ...7350円261円241円345円226円235円346円260円264円.cpp" | 2 +- ...0347円232円204円345円210円206円346円225円260円.cpp" | 14 +- ...4344円270円252円346円225円260円344円275円215円.cpp" | 2 +- ...k345円244円247円347円232円204円346円225円260円.cpp" | 4 +- ...1345円270円201円346円224円257円344円273円230円.cpp" | 2 +- ...6346円225円260円346円261円202円345円222円214円.cpp" | 4 +- ...7345円244円253円351円227円256円351円242円230円.cpp" | 10 +- ...1350円257円204円350円265円233円350円275円246円.cpp" | 2 +- ...6350円203円236円346円243円200円346円265円213円.cpp" | 14 +- ...2347円216円257円347円247円273円345円212円250円.cpp" | 16 +- ...5344円272円244円346円215円242円350円241円214円.cpp" | 14 +- ...6344円270円262円346円217円222円345円205円245円.cpp" | 12 +- ...1347円245円250円347円273円237円350円256円241円.cpp" | 26 +-- .../345円233円233円345円244円247円346円271円226円.cpp" | 36 ++-- ...3346円211円276円344円270円213円346円240円207円.cpp" | 30 ++-- ...6345円244円251円346円227円245円346円234円237円.cpp" | 24 +-- ...1346円204円237円344円274円240円346円237円223円.cpp" | 24 +-- ...6350円217円214円345円210円206円347円273円204円.cpp" | 38 ++-- ...5350円257円215円347円277円273円350円275円254円.cpp" | 24 +-- ...1351円205円215円351円227円256円351円242円230円.cpp" | 46 ++--- ...2351円230円237円346円270円270円346円210円217円.cpp" | 26 +-- ...2350円260円267円347円214円234円346円203円263円.cpp" | 22 +-- ...6344円270円213円351円201円215円345円216円206円.cpp" | 22 +-- ...7345円255円227円346円216円222円347円211円210円.cpp" | 20 +-- ...3347円264円240円344円271円213円345円222円214円.cpp" | 24 +-- ...6351円205円215円347円227円205円346円210円277円.cpp" | 30 ++-- ...3346円211円276円345円261円261円351円241円266円.cpp" | 20 +-- ...1347円242円261円345円237円272円351円223円276円.cpp" | 28 +-- ...3347円232円204円344円270円252円346円225円260円.cpp" | 26 +-- ...2347円232円204円345円255円227円346円257円215円.cpp" | 38 ++-- ...4346円236円201円345円244円247円347円202円271円.cpp" | 42 ++--- ...0345円207円272円350円277円267円345円256円253円.cpp" | 44 ++--- ...7347円254円246円345円210円244円345円256円232円.cpp" | 28 +-- .../week10(final)/MyString.cpp" | 6 +- ...7345円222円214円345円210円206円347円261円273円.cpp" | 2 +- ...6344円270円262円346円216円222円345円272円217円.cpp" | 2 +- ...6347円224円237円344円277円241円346円201円257円.cpp" | 10 +- ...7345円271円263円346円226円271円345円222円214円.cpp" | 2 +- ...3344円275円215円344円271円213円345円222円214円.cpp" | 2 +- ...0345円271円263円346円226円271円345円222円214円.cpp" | 2 +- .../350円276円223円345円207円272200円.cpp" | 2 +- ...345円256円232円347円273円223円346円236円2341円.cpp" | 2 +- ...345円256円232円347円273円223円346円236円2342円.cpp" | 2 +- ...3345円272円217円345円256円236円347円216円260円.cpp" | 30 ++-- ...345円272円217円345円241円253円347円251円2721円.cpp" | 24 +-- ...345円272円217円345円241円253円347円251円2722円.cpp" | 20 +-- ...345円272円217円345円241円253円347円251円2723円.cpp" | 24 +-- ...0345円207円217円344円271円230円351円231円244円.cpp" | 16 +- ...4357円274円232円350円243円205円345円244円207円.cpp" | 2 +- ...4347円273円210円346円236円201円347円211円210円.cpp" | 170 +++++++++--------- ...4347円273円210円346円236円201円347円211円210円.cpp" | 20 +-- .../istream_iterator.cpp" | 8 +- ...7345円207円206円347円237円251円345円275円242円.cpp" | 2 +- .../tmp.cpp" | 14 +- ...0351円222円237円351円227円256円351円242円230円.cpp" | 2 +- ...3345円256円266円351円227円256円351円242円230円.cpp" | 14 +- ...7350円275円254円346円215円242円345円231円250円.cpp" | 2 +- 58 files changed, 549 insertions(+), 549 deletions(-) diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/01_350円213円271円346円236円234円345円222円214円350円231円253円345円255円220円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/01_350円213円271円346円236円234円345円222円214円350円231円253円345円255円220円.cpp" index a859393..4e910a9 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/01_350円213円271円346円236円234円345円222円214円350円231円253円345円255円220円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/01_350円213円271円346円236円234円345円222円214円350円231円253円345円255円220円.cpp" @@ -6,8 +6,8 @@ int main() int n = 0; double x = 0, y = 0; cin>> n>> x>> y; - int ans = n - y / x; // 廣吭宸戦n瓜膿崙窃侏廬晒葎double? - ans = ans < 0 ? 0 : ans; // 複噫道惚倖方恷弌葎0 + int ans = n - y / x; // 羈???颷????n茴?綣阪?句瓜???莉サ??筝?double鐚? + ans = ans < 0 ? 0 : ans; // ??î????号??筝??井??絨鋇?0 cout << ans << endl; return 0; } diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/02_345円244円247円350円261円241円345円226円235円346円260円264円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/02_345円244円247円350円261円241円345円226円235円346円260円264円.cpp" index 2f16766..644fada 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/02_345円244円247円350円261円241円345円226円235円346円260円264円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/02_345円244円247円350円261円241円345円226円235円346円260円264円.cpp" @@ -8,7 +8,7 @@ int main() cin>> h>> r; float pi = 3.14159; double v = pi * r * r * h; - int ans = ceil(20000 / v); // ?貧函屁 + int ans = ceil(20000 / v); // ???筝??????? cout << ans << endl; return 0; } diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/03_346円234円200円351円253円230円347円232円204円345円210円206円346円225円260円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/03_346円234円200円351円253円230円347円232円204円345円210円206円346円225円260円.cpp" index 43281bc..fa5e827 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/03_346円234円200円351円253円230円347円232円204円345円210円206円346円225円260円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/03_346円234円200円351円253円230円347円232円204円345円210円206円346円225円260円.cpp" @@ -1,17 +1,17 @@ /* -恷互議蛍方 +???蕭?????????? -宙峰 +??颷? -柾析弗讐娩議ゞ柴麻古胎〃宸壇仁豚嶄深編胡胡潤崩?麿?岑祇深編嶄函誼議恷互蛍方。咀葎繁方曳熟謹?麿状誼宸周並秤住公柴麻字栖恂曳熟圭宴。低嬬逸柾析弗盾畳宸倖諒籾宅? +絖????絽?莅我????????莅∞??网?莅冴??菴????嚳???筝左??莚???????膸????鐚?篁???括?ラ?????莚?筝上??緇???????蕭??????違?????筝坂査??井??莨?紊?鐚?篁?茹?緇?菴?篁銀?????篋ょ??莅∞????堺?ュ??罸?莨???剛梢???篏???遵軒絖????絽?茹e?活??筝??勰?????鐚? -補秘 +莨???? -補秘曾佩?及匯佩葎屁方n?1 <= n < 100??燕幣歌紗宸肝深編議繁方.及屈佩頁宸n倖僥伏議撹示?屢惣曾倖方岻寂喘汽倖腎鯉侯蝕。侭嗤撹示譲葎0欺100岻寂議屁方。 +莨???ヤ犬茵?鐚?膃コ??茵?筝堺?贋??n鐚?1 <= n < 100鐚?鐚?茵?ず??????菴?罨∴??莚????篋堺??.膃コ??茵???虁??n筝?6?????????膸ú????檎?私犬筝??遺????雁?????筝?Ã??守??綣?????????????膸ï??筝?0???100箙???雁????贋?違?? -補竃 +莨???? -補竃匯倖屁方?軸恷互議撹示。 +莨???坂??筝??贋?逸????恰??蕭???????膸í?? */ #include diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/05_345円210円206円347円246円273円346円225円264円346円225円260円347円232円204円345円220円204円344円270円252円346円225円260円344円275円215円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/05_345円210円206円347円246円273円346円225円264円346円225円260円347円232円204円345円220円204円344円270円252円346円225円260円344円275円215円.cpp" index d366101..f0ae1b0 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/05_345円210円206円347円246円273円346円225円264円346円225円260円347円232円204円345円220円204円344円270円252円346円225円260円344円275円215円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week06/05_345円210円206円347円246円273円346円225円264円346円225円260円347円232円204円345円220円204円344円270円252円346円225円260円344円275円215円.cpp" @@ -19,7 +19,7 @@ int main() return 0; } -/* 圻井云 +/* ????????? #include using namespace std; diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/03_346円211円276円345円207円272円347円254円254円k345円244円247円347円232円204円346円225円260円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/03_346円211円276円345円207円272円347円254円254円k345円244円247円347円232円204円346円225円260円.cpp" index dde8005..1748831 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/03_346円211円276円345円207円272円347円254円254円k345円244円247円347円232円204円346円225円260円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/03_346円211円276円345円207円272円347円254円254円k345円244円247円347円232円204円346円225円260円.cpp" @@ -5,7 +5,7 @@ int main() { int n = 0, k = 0; cin>> n>> k; - // 短嗤公n議袈律?侭參強蓑幹秀方怏 + // 羃≧??膸?n????????器?????篁ュ????????綮堺?亥?? int *a = new int[n]; for (int i = 0; i < n; i++) @@ -13,7 +13,7 @@ int main() for (int i = 0; i < n; i++) { - // 孀欺曳a[i]寄議倖方?飛葎k-1夸a[i]頁及k寄議方 + // ??上?井??a[i]紊х??筝??逸????ヤ減k-1???a[i]??夌?k紊х????? int bigger = 0; for (int j = 0; j < n; j++) { diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/04_344円272円272円346円260円221円345円270円201円346円224円257円344円273円230円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/04_344円272円272円346円260円221円345円270円201円346円224円257円344円273円230円.cpp" index 0db92a5..bd908ee 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/04_344円272円272円346円260円221円345円270円201円346円224円257円344円273円230円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/04_344円272円272円346円260円221円345円270円201円346円224円257円344円273円230円.cpp" @@ -5,7 +5,7 @@ int main() { int money = 0; cin>> money; - // 喘方怏贋刈孀巣中駆式斤哘議方楚 + // ?????亥??絖??????冗?狗?∫?????絲劫???????育?? int a[6] = { 100, 50, 20, 10, 5, 1 }; int n[6]; diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/345円210円206円346円225円260円346円261円202円345円222円214円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/345円210円206円346円225円260円346円261円202円345円222円214円.cpp" index 6bff0f2..56430bd 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/345円210円206円346円225円260円346円261円202円345円222円214円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/345円210円206円346円225円260円346円261円202円345円222円214円.cpp" @@ -7,7 +7,7 @@ int main() int n = 0; cin>> n; - int sumn = 0, sumd = 1; // 刈贋潤惚 sum/sumd + int sumn = 0, sumd = 1; // ???絖?膸???? sum/sumd while (n--) { int num, deno; @@ -25,7 +25,7 @@ int main() a = b%a; b = c; } - int gcd = b; // 恷寄巷埃方 + int gcd = b; // ???紊у?ス墾??? sumd /= gcd; sumn /= gcd; diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/347円272円246円347円221円237円345円244円253円351円227円256円351円242円230円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/347円272円246円347円221円237円345円244円253円351円227円256円351円242円230円.cpp" index 303c754..7319677 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/347円272円246円347円221円237円345円244円253円351円227円256円351円242円230円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week07/347円272円246円347円221円237円345円244円253円351円227円256円351円242円230円.cpp" @@ -13,8 +13,8 @@ int main() break; } - int id[300]; // id 芝村削徨議園催 - int state[300]; // state 芝村削徨彜蓑?1燕幣筈坪?0燕幣筈翌 + int id[300]; // id 莅医????翫?????膽???? + int state[300]; // state 莅医????翫????倶??鐚?1茵?ず??????鐚?0茵?ず???紊? for (int i = 0; i < n; i++) { @@ -22,10 +22,10 @@ int main() state[i] = 1; } - int count = 1; // 貫1蝕兵烏方 - for (int i = 0, num = n; num != 1; i++) // num?筈坪削方 + int count = 1; // 篁?1綣?紮???ユ?? + for (int i = 0, num = n; num != 1; i++) // num鐚?????????贋?? { - // i>= n 燕幣汎阻匯筈 + // i>= n 茵?ず膸?篋?筝???? if (i>= n) { i -= n; diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week08/00_347円202円271円350円257円204円350円265円233円350円275円246円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week08/00_347円202円271円350円257円204円350円265円233円350円275円246円.cpp" index ed60341..5042e5b 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week08/00_347円202円271円350円257円204円350円265円233円350円275円246円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week08/00_347円202円271円350円257円204円350円265円233円350円275円246円.cpp" @@ -9,7 +9,7 @@ int main() bool b = (best == 4); bool c = (best != 3); bool d = !b; - // 峪嗤匯倖廨社傍斤 + // ?Ŭ??筝?筝ŭ??絎区?絲? if (a + b + c + d == 1) { cout << best << endl; diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円274円202円345円270円270円347円273円206円350円203円236円346円243円200円346円265円213円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円274円202円345円270円270円347円273円206円350円203円236円346円243円200円346円265円213円.cpp" index 8efcd3b..0320dc4 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円274円202円345円270円270円347円273円206円350円203円236円346円243円200円346円265円213円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円274円202円345円270円270円347円273円206円350円203円236円346円243円200円346円265円213円.cpp" @@ -1,17 +1,17 @@ /* -宙峰 +??颷? -厘断田父議匯嫖CT孚頭喘匯倖屈略方怏栖贋刈?邪譜方怏嶄議耽倖泣旗燕匯倖聾飲。耽倖聾飲議冲弼喘0欺255岻寂?淫凄0才255?議匯倖屁方燕幣。厘断協吶匯倖聾飲頁呟械聾飲?泌惚宸倖聾飲議冲弼峙曳万貧和恣嘔4倖聾飲議冲弼峙脅弌50參貧?淫凄50?。方怏円垉貧議聾飲厘断音殊霞。孖壓厘断議販暦頁?公協匯倖贋刈CT孚頭議屈略方怏?亟殻會由柴孚頭嶄呟械聾飲議方朕。 +???篁シ????????筝?綣?CT??х?????筝?筝ŭ??膸贋?亥????ュ????Ǎ?????莅丈?亥??筝下??罸鋇??剛撮茵?筝?筝?????????罸鋇?????????蘂???牙??0???255箙???器????????0???255鐚????筝?筝??贋?域;腓冴?????篁サ??箙?筝?筝???????????絽悟?????鐚?絋????菴?筝?????????蘂???峨?惹??絎?筝?筝?綏???4筝?????????蘂???峨?守?遵??50篁ヤ??鐚???????50鐚??????亥??莨合??筝????膸???????篁コ??罍?羌?????ー??????篁ス??篁糸?≧?姒??膸?絎?筝?筝??????CT??х?????篋?膸贋?亥??鐚????腮?綺靳?莅∞?х??筝上??絽悟??????????亥?勉?? -補秘 +莨???? -及匯佩淫根匯倖屁方N?100>=N>2?. +膃コ??茵?????????筝??贋??N鐚?100>=N>2鐚?. -和中嗤 N 佩?耽佩嗤 N 倖0~255岻寂議屁方?屁方岻寂喘腎鯉侯蝕。 +筝???∽?? N 茵?鐚?罸頫???? N 筝?0~255箙???雁????贋?逸????贋?遺????雁??Ã??守??綣???? -補竃 +莨???? -補竃峪嗤匯佩?淫根匯倖屁方?葎呟械聾飲議方朕。 +莨???阪Ŭ??筝?茵?鐚?????????筝??贋?逸??筝阪??絽悟??????????亥?勉?? */ #include diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円276円252円347円216円257円347円247円273円345円212円250円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円276円252円347円216円257円347円247円273円345円212円250円.cpp" index 2839162..08ce7e2 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円276円252円347円216円257円347円247円273円345円212円250円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/345円276円252円347円216円257円347円247円273円345円212円250円.cpp" @@ -1,19 +1,19 @@ /* -宙峰 +??颷? -公協匯怏屁方?勣箔旋喘方怏委宸怏方隠贋軟栖?壅旋喘糞孖斤方怏嶄議方儉桟卞強。邪協慌嗤n倖屁方?夸勣聞念中光方乏會?朔卞m倖了崔?旺聞恷朔m光方延葎恷念中議m光方。 +膸?絎?筝?膸???贋?逸??荀?羆???ñ????亥?????菴?膸???遺??絖?莎傑?ワ???????ñ??絎??ー絲号?亥??筝下????医妾?ッ腱糸????????絎???掩??n筝??贋?逸?????荀?篏水????√????育〆綺???????腱?m筝ŭ??臀卡??綛銀戎??????m?????医??筝堺???????∝??m?????違?? -廣吭?音勣喘枠補竃朔m倖方?壅補竃念n-m倖方議圭隈糞孖?匆音勣喘曾倖方怏議圭塀糞孖。 +羈?????筝?荀???????莨???阪??m筝??逸?????莨???阪??n-m筝??亥????号??絎??ー鐚?箙?筝?荀????筝や肩??亥???????劫?鎘??ー??? -勣箔峪喘匯倖方怏議圭塀糞孖?匯協勣隠屬壓補竃潤惚扮?補竃議乏會才方怏嶄方議乏會頁匯崑議。 +荀?羆??Ǔ??筝?筝??亥???????劫?鎘??ー鐚?筝?絎?荀?篆?莚????????榊???????駈??莨???榊??蕁阪???????亥??筝中?亥??蕁阪????壚????雁????? -補秘 +莨???? -補秘嗤曾佩?及匯佩淫根匯倖屎屁方n才匯倖屎屁方m?及屈佩淫根n倖屎屁方。耽曾倖屎屁方嶄寂喘匯倖腎鯉蛍蝕。 +莨???ユ??筝よ??鐚?膃コ??茵?????????筝?3??贋??n???筝?筝?3??贋??m鐚?膃コ??茵???????n筝?3??贋?違??罸鋇や肩罩f?贋?遺賢??雁??筝?筝?Ã??弱??綣???? -補竃 +莨???? -補竃嗤匯佩?将狛儉桟卞強朔方怏嶄屁方議乏會卆肝補竃?耽曾倖屁方岻寂喘腎鯉蛍侯。 +莨???堺??筝?茵?鐚?膸颷?緇?ッ腱糸???????亥??筝中?贋?亥??蕁阪?鋐?罨∴????削??罸鋇や肩??贋?遺????雁??Ã??弱???????? */ #include diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/347円237円251円351円230円265円344円272円244円346円215円242円350円241円214円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/347円237円251円351円230円265円344円272円244円346円215円242円350円241円214円.cpp" index 2e59161..3e67e07 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/347円237円251円351円230円265円344円272円244円346円215円242円350円241円214円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week10/347円237円251円351円230円265円344円272円244円346円215円242円350円241円214円.cpp" @@ -1,17 +1,17 @@ /* -宙峰 +??颷? -壓main痕方嶄? 伏撹匯倖5*5議裳專?補秘裳專方象?旺補秘n?m議峙。登僅n?m頁倦壓方怏袈律坪?泌惚音壓?夸補竃error?泌惚壓袈律坪?夸繍n佩才m佩住算?補竃住算n?m朔議仟裳專。 +???main??醇?遺賢鐚? ??????筝?筝?5*5?????ó?居??莨???ョ?ó?究?井?卡??綛区?????n鐚?m?????若????ゆ??n鐚?m?????????亥???????翫??鐚?絋????筝???Ǎ?????莨????error鐚?絋???????????翫??鐚????絨?n茵????m茵?篋ゆ????莨???坂困???n鐚?m????????亥?ó?泣?? -補秘 +莨???? -5*5裳專議方象?參式n才m議峙。 +5*5??ó?窮????井?卡??篁ュ??n???m?????若?? -補竃 +莨???? -泌惚音辛住算?夸補竃error +絋????筝??櫆困????????莨????error -泌惚辛住算?夸補竃仟裳專 +絋?????櫆困????????莨???堺?亥?ó?? */ #include diff --git "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week12(final)/345円255円227円347円254円246円344円270円262円346円217円222円345円205円245円.cpp" "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week12(final)/345円255円227円347円254円246円344円270円262円346円217円222円345円205円245円.cpp" index cf47475..9776fdc 100644 --- "a/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week12(final)/345円255円227円347円254円246円344円270円262円346円217円222円345円205円245円.cpp" +++ "b/1.350円256円241円347円256円227円345円257円274円350円256円272円344円270円216円C350円257円255円350円250円200円345円237円272円347円241円200円/week12(final)/345円255円227円347円254円246円344円270円262円346円217円222円345円205円245円.cpp" @@ -1,17 +1,17 @@ /* -宙峰 +??颷? -嗤曾倖忖憲堪str才substr?str議忖憲倖方音階狛10?substr議忖憲倖方葎3。?忖憲倖方音淫凄忖憲堪潤硫侃議'0円'。?繍substr峨秘欺str嶄ASCII鷹恷寄議椎倖忖憲朔中?飛嗤謹倖恷寄夸峪深打及匯倖。 +???筝や肩絖?膃?顕str???substr鐚?str???絖?膃?肩??遺??莇?菴?10鐚?substr???絖?膃?肩??遺減3???鐚?絖?膃?肩??遺???????サ??膃?顕膸?絨上?????'0円'???鐚?絨?substr?????ュ??str筝?ASCII??????紊х????d肩絖?膃??????????ユ??紊?筝???紊у???Ű?????膃コ??筝ŝ?? -補秘 +莨???? -補秘淫凄飛孤佩?耽匯佩葎匯怏霞編方象?鯉塀葎 +莨???ュ????セ?ュ慌茵?鐚?罸鋇?茵?筝坂??膸?羌?莚???井?卡????弱?鋇? str substr -補竃 +莨???? -斤噐耽匯怏霞編方象?補竃峨秘岻朔議忖憲堪。 +絲剛??罸鋇?膸?羌?莚???井?卡??莨???堺????ヤ????????絖?膃?顕??? */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円217円221円347円245円250円347円273円237円350円256円241円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円217円221円347円245円250円347円273円237円350円256円241円.cpp" index 4bbd56d..63ccaca 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円217円221円347円245円250円347円273円237円350円256円241円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円217円221円347円245円250円347円273円237円350円256円241円.cpp" @@ -1,32 +1,32 @@ /* -園殻籾?3?窟同由柴 +膽?腮?蘂?鐚?3鐚????腑???莅? -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -嗤匯倖弌侏議烏嬲狼由?万嗤泌和孔嬬? +???筝?筝???????????ヨ侃膤紫??鐚?絎????絋?筝??????緒?? -?1?由柴耽倖繁侭烏窟同議悳熱方 +鐚?1鐚?膸?莅≧?鋇ŭ査?????ュ??腑?????脂?掩?? -?2?由柴耽窃窟同議悳熱方 +鐚?2鐚?膸?莅≧?靏糸??腑?????脂?掩?? -繍緩狼由酒晒葎泌和?邪譜窟同窃艶慌嗤A、B、C眉嶽;匯慌嗤眉倖繁?ID蛍艶葎1、2、3。 +絨?罩ょ鎧膸?膊????筝阪??筝?鐚????莅上??腑?瓜?????掩??A???B???C筝?腱?;筝???掩??筝?筝ŭ査鐚?ID??????減1???2???3??? -補秘 +莨???? -狼由補秘淫根眉佩?耽佩及匯倖方葎繁埀ID?屁侏?1賜2賜3??及屈倖方葎窟同悳嫖方(嫖方音階狛100)?岻朔頁謹倖窟同窃艶?忖憲侏?A賜B賜C?才屢哘窟同署駆?汽序業検泣侏,音階狛1000.0?。 +膤紫??莨???ュ???????茵?鐚?罸頫?膃コ??筝??遺減篋阪??ID鐚???翫??鐚?1???2???3鐚?鐚?膃コ??筝??遺減???腑???糸?????(綣???遺??莇?菴?100)鐚?箙?????????筝???腑?瓜?????絖?膃???鐚?A???B???C鐚??????後?????腑???蘂?鐚????菴?綺?貴??劫??,筝?莇?菴?1000.0鐚???? -補竃 +莨???? -補竃淫根鎗佩?念眉佩葎耽繁?梓ID喇弌欺寄補竃?侭烏窟同悳熱方?隠藻曾了弌方??朔眉佩葎耽窃窟同議悳熱方?隠藻曾了弌方?。 +莨???阪???????左??鐚????筝?茵?筝堺?鋋削?????ID??怨????医ぇ莨???削???????ュ??腑???脂?掩?逸??篆????筝や??絨???逸??鐚????筝?茵?筝堺?靏糸??腑?????脂?掩?逸??篆????筝や??絨???逸????? -劔箭補秘 +??隙??莨???? 1 5 A 1.0 A 2.0 C 1.0 B 1.0 C 1 3 3 B 1 C 2 C 1 2 4 B 1 A 1 C 1 A 1 -劔箭補竃 +??隙??莨???? 1 6.00 2 4.00 3 4.00 diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円233円233円345円244円247円346円271円226円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円233円233円345円244円247円346円271円226円.cpp" index 46ee706..f00f161 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円233円233円345円244円247円346円271円226円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円233円233円345円244円247円346円271円226円.cpp" @@ -1,36 +1,36 @@ /* -園殻籾?2?膨寄刷 +膽?腮?蘂?鐚?2鐚????紊ф?? -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -厘忽嗤4寄記邦刷。 +?????醇??4紊ф掘羂贋????? -A傍?挟優刷恷寄?咲夾刷恷弌?朸剩刷及眉。 +A莚器??羇?綺中?????紊э??羇?浬羚????絨????演?恰??膃コ????? -B傍?咲夾刷恷寄?挟優刷恷弌?朸剩刷及屈?湊刷及眉。 +B莚器??羇?浬羚????紊э??羇?綺中?????絨????演?恰??膃コ??鐚?紊???膃コ????? -C傍?咲夾刷恷弌?挟優刷及眉。 +C莚器??羇?浬羚????絨??羇?綺中??膃コ????? -D傍?朸剩刷恷寄?湊刷恷弌?咲夾刷及屈?挟優刷及眉。 +D莚器????演?恰?????紊э??紊??????絨??羇?浬羚?膃コ??鐚?羇?綺中??膃コ????? -厮岑宸4倖刷議寄弌譲音屢吉?4倖繁耽繁叙基斤匯倖? +綏牙?ヨ??4筝??????紊у?????筝???悟??鐚?4筝ŭ査罸鋋坂??膈?絲剛??筝??? -萩園殻梓孚朸剩刷、挟優刷、湊刷、咲夾刷議乏會公竃麿断議寄弌電兆。 +莚欠??腮??????ч?演?恰?????羇?綺中?????紊??????羇?浬羚????蕁阪?靳???坂??篁ス??紊у??????????? -補秘 +莨???? -涙。 +?????? -補竃 +莨???? -補竃葎4佩?及1佩葎朸剩刷議寄弌兆肝?貫寄欺弌兆肝蛍艶燕幣葎1、2、3、4?及2、3、4佩蛍艶葎挟優刷、湊刷、咲夾刷議寄弌兆肝。 +莨???坂減4茵?鐚?膃?1茵?筝咲?演?恰?????紊у?????罨\??篁?紊у?医?????罨≦?????;腓坂減1???2???3???4鐚?膃?2???3???4茵???????減羇?綺中?????紊??????羇?浬羚????紊у?????罨<?? -劔箭補秘 -(涙) +??隙??莨???? +(???) -劔箭補竃 +??隙??莨???? 3 2 1 @@ -45,7 +45,7 @@ int check(int guess[], int order[]); int main() { - // 乏會?朸剩刷、挟優刷、湊刷、咲夾刷 + // 蕁阪?????演?恰?????羇?綺中?????紊??????羇?浬羚? int guessA[4] = { 3,1,0,4 }; int guessB[4] = { 2,4,3,1 }; int guessC[4] = { 0,3,0,4 }; diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円257円273円346円211円276円344円270円213円346円240円207円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円257円273円346円211円276円344円270円213円346円240円207円.cpp" index c3d6912..faee1d5 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円257円273円346円211円276円344円270円213円346円240円207円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/345円257円273円346円211円276円344円270円213円346円240円207円.cpp" @@ -1,34 +1,34 @@ /* -園殻籾?1?儖孀和炎 +膽?腮?蘂?鐚?1鐚?絲紙?鞘????? -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -厮岑匯倖屁方方怏x[],凪嶄議圷殆泳緩脅音屢揖。孀竃公協議方怏嶄頁倦嗤匯倖圷殆諾怎x[i]=i議購狼?方怏和炎貫0蝕兵。 +綏牙?ヤ??筝??贋?井?亥??x[],??銀賢??????膣?綵惹4??巡????後???????上?榊??絎??????亥??筝中??????筝?筝???膣?羯∴恭x[i]=i?????括鎧鐚???亥??筝????篁?0綣?紮???? -訟箭遇冱?泌惚x[]={-2,-1,7,3,0,8},夸x[3] = 3,咀緩3祥頁基宛。 +筝鞘?????荐?鐚?絋????x[]={-2,-1,7,3,0,8},???x[3] = 3,???罩?3絨掩?夌??罅???? -補秘 +莨???? -及匯佩淫根匯倖屁方n (0 < n < 100)?燕幣方怏嶄圷殆議倖方。
及屈佩淫根n倖屁方?卆肝燕幣方怏嶄議圷殆。 +膃コ??茵?????????筝??贋??n (0 < n < 100)鐚?茵?ず??亥??筝上??膣????筝??違??
膃コ??茵???????n筝??贋?逸??箴?罨∴;腓堺?亥??筝下?????膣???? -補竃 +莨???? -補竃葎匯倖屁方?軸諾怎x[i]=i議圷殆?飛嗤謹倖圷殆諾怎?補竃及匯倖諾怎議圷殆。飛短嗤圷殆諾怎?夸補竃^N ?。 +莨???坂減筝?筝??贋?逸????恰察莇?x[i]=i??????膣?鐚???ユ??紊?筝???膣?羯∴恭鐚?莨???榊?筝?筝?察莇括?????膣??????ユ押??????膣?羯∴恭鐚????莨???財??N?????? -劔箭補秘 -及匯怏 +??隙??莨???? +膃コ??膸? 6 -2 -1 7 3 4 8 -及屈怏 +膃コ??膸? 6 9 9 9 9 9 9 -劔箭補竃 -及匯怏 +??隙??莨???? +膃コ??膸? 3 -及屈怏 +膃コ??膸? N */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円230円216円345円244円251円346円227円245円346円234円237円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円230円216円345円244円251円346円227円245円346円234円237円.cpp" index 79ed9b0..ca465ae 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円230円216円345円244円251円346円227円245円346円234円237円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円230円216円345円244円251円346円227円245円346円234円237円.cpp" @@ -1,28 +1,28 @@ /* -園殻籾?4?Tomorrow never knows? +膽?腮?蘂?鐚?4鐚?Tomorrow never knows鐚? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -遮診恰議ゞA day in the life〃才ゞTomorrow never knows〃諍嵋繁笥?泌惚御盆低a day in the life,寔議氏頁tomorrow never knows?屢佚僥阻柴古岻朔宸倖音氏頁佃籾?孖壓祥栖糞孖杏。 +??峨3????????A day in the life?????????Tomorrow never knows?????????篋阪???絋???????莚?篏?a day in the life,??????篌????tomorrow never knows???娯拭絖???莅≧??箙????菴?筝ŭ??篌???奝?冗??鐚??ー???絨掩?ュ???ー??с?? -響秘匯倖鯉塀葎yyyy-mm-dd議晩豚?軸定?埖?晩??補竃宸倖晩豚和匯爺議晩豚。辛參邪協補秘議晩豚音壼噐1600年01月01日?匆音絡噐2999年12月30日。 +莚糸?ヤ??筝??弱?鋇?yyyy-mm-dd?????ユ??鐚???喝拘鐚????鐚???ワ??鐚?莨???肴??筝??ユ??筝?筝?紊ñ????ユ??????櫆札???絎?莨???ョ????ユ??筝???î??1600年01月01日鐚?箙?筝????篋?2999年12月30日??? -補秘 +莨???? -補秘叙匯佩?鯉塀葎yyyy-mm-dd議晩豚。 +莨???ヤ??筝?茵?鐚???弱?鋇?yyyy-mm-dd?????ユ????? -補竃 +莨???? -補竃匆叙匯佩?鯉塀葎yyyy-mm-dd議晩豚 +莨???坂??篁?筝?茵?鐚???弱?鋇?yyyy-mm-dd?????ユ?? -劔箭補秘 +??隙??莨???? 2010年07月05日 -劔箭補竃 +??隙??莨???? 1 2010年07月06日 */ diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円265円201円346円204円237円344円274円240円346円237円223円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円265円201円346円204円237円344円274円240円346円237円223円.cpp" index e665c92..371d07d 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円265円201円346円204円237円344円274円240円346円237円223円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/346円265円201円346円204円237円344円274円240円346円237円223円.cpp" @@ -1,25 +1,25 @@ /* -園殻籾?6?送湖勧半 +膽?腮?蘂?鐚?6鐚?羌????篌???? -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -嗤匯答叟湖繁蛤廖壓利鯉彜議凡普曝坪?凡普曝葎n*n議裳專?耽倖鯉泣葎匯倖型寂?型寂戦辛嬬廖繁?匆辛嬬腎彭。壓及匯爺?嗤乂型寂戦議繁誼阻送湖?參朔耽爺?誼送湖議繁氏聞凪惣肖勧半貧送湖??厮将誼押議音延??腎型寂音氏勧半。萩補竃及m爺誼送湖議繁方。 +???筝???号?????篋榊召篏????????主?句??絎粋????阪??鐚?絎粋????坂減n*n?????ó?居??罸鋇??主?剛減筝?筝??翠?器????翠?顔???櫝?巡?鋋削??箙??櫝?順Ã??????????筝?紊ú?????篋???翠?顔?????篋阪??篋?羌????鐚?篁ュ??罸鎀ú??緇?羌???????篋坂??篏水?狗?糸??篌????筝?羌????鐚?鐚?綏牙?鏅???????筝????鐚?鐚?腥堺?翠?岩??篌?篌???????莚決????榊?m紊ï??羌???????篋堺?違?? -補秘 +莨???? -及匯佩匯倖方忖n?n音階狛100?燕幣嗤n*n議凡普型寂。 +膃コ??茵?筝?筝??医??n鐚?n筝?莇?菴?100鐚?茵?ず???n*n???絎粋????翠?眼?? -俊和栖議n佩?耽佩n倖忖憲? ?. ?燕幣及匯爺乎型寂廖彭宗慎議繁? ?# ?燕幣乎型寂腎彭? ?@ ?燕幣及匯爺乎型寂廖彭誼送湖議繁。 +?・筝???ョ??n茵?鐚?罸頫?n筝???膃??????.???茵?ず膃コ??紊ò唫??翠?岩???????ュ嵯???篋削?????#???茵?ず莚ユ?翠?雁Ã???鐚????@???茵?ず膃コ??紊ò唫??翠?岩?????緇?羌???????篋冴?? -俊和栖議匯佩頁匯倖屁方m?m音階狛100. +?・筝???ョ??筝?茵???壚??筝??贋??m鐚?m筝?莇?菴?100. -補竃 +莨???? -補竃及m爺?誼送湖議繁方 +莨???榊?m紊ú??緇?羌???????篋堺?? -劔箭補秘 +??隙??莨???? ....# .#.@. .#@.. @@ -27,7 +27,7 @@ ..... 4 -劔箭補竃 +??隙??莨???? 16 diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/347円273円206円350円217円214円345円210円206円347円273円204円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/347円273円206円350円217円214円345円210円206円347円273円204円.cpp" index 6615d4e..3d8ace1 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/347円273円206円350円217円214円345円210円206円347円273円204円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week2/344円275円234円344円270円232円/347円273円206円350円217円214円345円210円206円347円273円204円.cpp" @@ -1,34 +1,34 @@ /* -園殻籾?5?聾醸糞刮蛍怏 +膽?腮?蘂?鐚?5鐚?膸????絎?薨????膸? -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -嗤匯嶽聾醸蛍葎A、B曾倖冉嶽?万断議翌壓蒙尢叱窄頼畠屢揖?叙叙壓訓岾嬬薦貧嗤?墻瑗遽陦?A冉嶽訓岾嬬薦掲械膿?B冉嶽議訓岾嬬薦載樋。壓匯肝葎扮匯倖 弌扮議聾醸訓岾糞刮嶄?糞刮埀喇噐墓策委聾醸凍劍駐吾岱阻?萩低園亟匯倖殻會?功象糞刮潤惚?委曾倖冉嶽議凍劍駐嶷仟蛍撹曾怏。 +???筝?腱?膸???????筝?A???B筝や肩篋?腱?鐚?絎?篁ス??紊?????劫?????箙?絎?????後??鐚?篁?篁??????罧???遵??筝??????乗??綏?????A篋?腱?膵?罧???遵?????絽後失鐚?B篋?腱????膵?罧???遵??緇?綣宴?????筝?罨>減??銀??筝? 絨???句??膸????膵?罧?絎?薨?筝昭和??絎?薨??????延????鏆醇??膸??????劫?紫?炊??箙延??鐚?莚隙??膽????筝?筝???綺????号????薨?膸????鐚????筝や肩篋?腱??????劫?紫?翠????医?????筝ょ????? -補秘 +莨???? -補秘嗤謹佩?及匯佩葎屁方n?n+100??燕幣嗤n倖凍劍駐。 +莨???ユ??紊?茵?鐚?膃コ??茵?筝堺?贋??n鐚?n???100鐚?鐚?茵?ず???n筝??劫?紫?帥?? -凪噫n佩?耽佩嗤眉倖屁方?蛍艶旗燕凍劍駐園催?編刮念聾醸方楚?編刮朔聾醸方楚。 +??銀??n茵?鐚?罸頫????筝?筝??贋?逸????????撮茵???劫?紫?睡???埦??莚?薨????膸??????育???莚?薨????膸??????育????? -補竃 +莨???? -補竃嗤謹佩? +莨???堺??紊?茵?鐚? -及匯佩補竃A冉嶽凍劍駐議方楚?凪朔耽佩補竃A冉嶽凍劍駐議園催?梓訓岾楕幅會電双。 +膃コ??茵?莨????A篋?腱???劫?紫?睡????育?????九??罸頫?莨????A篋?腱???劫?紫?睡??膽??埦?????膵?罧???????綺?????????? -隼朔匯佩補竃B冉嶽凍劍駐議方楚?凪朔耽佩補竃B冉嶽凍劍駐議園催?匆梓訓岾楕幅會電双。 +??九??筝?茵?莨????B篋?腱???劫?紫?睡????育?????九??罸頫?莨????B篋?腱???劫?紫?睡??膽??埦??箙????膵?罧???????綺?????????? -劔箭補秘 +??隙??莨???? 1 10 3456 2 10 5644 3 10 4566 4 20 234 5 20 232 -劔箭補竃 +??隙??莨???? 3 1 3 @@ -37,11 +37,11 @@ 5 4 -戻幣 +???腓? -冉嶽坪何聾醸訓岾嬬薦餓呟 垓垓弌噐 冉嶽岻寂聾醸訓岾嬬薦餓呟。 +篋?腱????????????膵?罧???遵??綏??? 菴?菴?絨鋋? 篋?腱?箙???雁?????膵?罧???遵??綏?????? -匆祥頁傍?冉嶽寂販採曾怏聾醸議訓岾楕岻餓脅曳冉嶽坪何曾怏聾醸議訓岾楕岻餓寄。 +箙?絨掩?虁?鐚?篋?腱???岩算篏?筝ょ??膸???????膵?罧????箙?綏勰?醇??篋?腱???????筝ょ??膸???????膵?罧????箙?綏?ぇ??? */ #include @@ -63,7 +63,7 @@ int main() rate[i] = (x2 - x1) / x1; } - sortByRate(n, id, rate); // 幅會電會 + sortByRate(n, id, rate); // ???綺????綺? double maxDiff = 0; int maxDiffIndex = 0; @@ -77,14 +77,14 @@ int main() } } - // 補竃A冉嶽聾醸 + // 莨????A篋?腱?膸???? cout << maxDiffIndex + 1 << endl; for (int i = maxDiffIndex; i>= 0; i--) { cout << id[i] << endl; } - // 補竃B冉嶽聾醸 + // 莨????B篋?腱?膸???? cout << n - maxDiffIndex - 1 << endl; for (int i = n - 1; i> maxDiffIndex; i--) { diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/345円215円225円350円257円215円347円277円273円350円275円254円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/345円215円225円350円257円215円347円277円273円350円275円254円.cpp" index cfa7f1a..fcc07f4 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/345円215円225円350円257円215円347円277円273円350円275円254円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/345円215円225円350円257円215円347円277円273円350円275円254円.cpp" @@ -1,29 +1,29 @@ /* -園殻籾?1?汽簡鍬廬 +膽?腮?蘂?鐚?1鐚????莚?膺肢習 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -補秘匯倖鞘徨?匯佩??繍鞘徨嶄議耽匯倖汽簡鍬廬朔補竃。 +莨???ヤ??筝?媱??鐚?筝?茵?鐚?鐚?絨??媱??筝下??罸鋇?筝???莚?膺肢習???莨???冴?? -補秘 +莨???? -峪嗤匯佩?葎匯倖忖憲堪?音階狛500倖忖憲。汽簡岻寂參腎鯉侯蝕。侭僚汽簡峺議頁侭嗤音淫根腎鯉議銭偬議忖憲。 +?Ŭ??筝?茵?鐚?筝坂??筝???膃?顕鐚?筝?莇?菴?500筝???膃??????莚?箙???岩札腥堺?守??綣???????莪????莚?????????壩?????筝???????Ã??主??菴?膸下??絖?膃??? -宸祇籾萩喘cin.getline補秘匯佩朔壅幟倖汽簡弓拷侃尖。 +菴????蘂?莚欠??cin.getline莨???ヤ??茵??????????筝???莚????綵?紊??????? -補竃 +莨???? -鍬廬耽匯倖汽簡朔議忖憲堪?汽簡岻寂議腎鯉俶嚥圻猟匯崑。 +膺肢習罸鋇?筝???莚???????絖?膃?顕鐚????莚?箙???雁??腥堺?守??筝???????筝???眼?? -劔箭補秘 +??隙??莨???? 1 hello world. -劔箭補竃 +??隙??莨???? 1 olleh .dlrow diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円213円254円345円217円267円345円214円271円351円205円215円351円227円256円351円242円230円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円213円254円345円217円267円345円214円271円351円205円215円351円227円256円351円242円230円.cpp" index 594a6e9..2897ee4 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円213円254円345円217円267円345円214円271円351円205円215円351円227円256円351円242円230円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円213円254円345円217円267円345円214円271円351円205円215円351円227円256円351円242円230円.cpp" @@ -1,19 +1,19 @@ /* -園殻籾?4?制催謄塘諒籾 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?4鐚???ï垸?拷????勰?? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -壓蝶倖忖憲堪?海業音階狛100?嶄嗤恣凄催、嘔凄催才寄弌亟忖銚?号協?嚥械需議麻方塀徨匯劔?販採匯倖恣凄催脅貫坪欺翌嚥壓万嘔円拝鉦宣恷除議嘔凄催謄塘。亟匯倖殻會?孀欺涙隈謄塘議恣凄催才嘔凄催?補竃圻栖忖憲堪?旺壓和匯佩炎竃音嬬謄塘議凄催。音嬬謄塘議恣凄催喘"$"炎廣,音嬬謄塘議嘔凄催喘"?"炎廣. +??颷? +??????筝???膃?顕鐚???水墾筝?莇?菴?100鐚?筝中??綏??サ垩???勄?サ垸??紊у?????絖?罸?鐚?茹?絎?鐚?筝?絽梧?????膊???医?鎕?筝???件??篁私??筝?筝?窪??サ埌?巡???????医??筝????絎??勈捷筝?莊?胼紙??菴?????勄?サ垸?拷????????筝?筝???綺????上?井??羈???拷?????綏??サ垸???勄?サ埦??莨???阪????ュ??膃?顕鐚?綛九??筝?筝?茵??????坂????遵?拷???????サ垩??筝???遵?拷?????綏??サ埇??"$"???羈?,筝???遵?拷??????勄?サ埇??"?"???羈?. -補秘 -補秘淫凄謹怏方象?耽怏方象匯佩?淫根匯倖忖憲堪?峪淫根恣嘔凄催才寄弌亟忖銚?忖憲堪海業音階狛100 +莨???? +莨???ュ????サ??膸???井?卡??罸靳???井?勌??茵?鐚?????????筝???膃?顕鐚??Û?????綏?勄?サ垸??紊у?????絖?罸?鐚?絖?膃?顕??水墾筝?莇?菴?100 -廣吭?cin.getline(str,100)恷謹峪嬬補秘99倖忖憲? +羈?????cin.getline(str,100)???紊??Ű?処?????99筝???膃??? -補竃 -斤耽怏補竃方象?!!!補竃曾佩?及匯佩淫根圻兵補秘忖憲!!!?及屈佩喇"$","?"才腎鯉怏撹?"$"才"?"燕幣嚥岻斤哘議恣凄催才嘔凄催音嬬謄塘。 +莨???? +絲号?靳?莨???堺?井?卡??!!!莨???坂犬茵?鐚?膃コ??茵??????????紮?莨???ュ??膃?!!!鐚?膃コ??茵????"$","?"???腥堺?主?????鐚?"$"???"?"茵?ず筝?箙?絲劫?????綏??サ垸???勄?サ垬????遵?拷????? */ #include @@ -21,21 +21,21 @@ using namespace std; /* -謄塘凄催 -補秘? - char str[]: 謄塘議忖憲堪 - int start: 謄塘軟兵了崔 - bool *matched: 匯略方怏?謄塘撹孔葎true?倦夸葎false -卦指峙? - int n? - 謄塘撹孔卦指嘔凄催index - 謄塘潤崩卦指-1 +??拷????サ?? +莨???ワ?? + char str[]: ??拷?????絖?膃?顕 + int start: ??拷??莎桁??篏?臀? + bool *matched: 筝?膸贋?亥??鐚???拷????????筝?true鐚??????筝?false +菴??????種?? + int n鐚? + ??拷????????菴?????勄?サ??index + ??拷??膸????菴????-1 */ int match(char str[], int start, bool *matched) { if (strlen(str) == start) { - return -1; //謄塘潤崩 + return -1; //??拷??膸???? } else { @@ -67,19 +67,19 @@ int match(char str[], int start, bool *matched) int main() { char str[100]; - // 謹怏補秘 + // 紊?膸?莨???? while (cin.getline(str, 101)) { bool matched[101] = { 0 }; - // 謄塘凄催 + // ??拷????サ?? int n = match(str, 0, matched); while (n != -1) { n = match(str, n + 1, matched); } - // 補竃潤惚 + // 莨???榊????? cout << str << endl; for (int i = 0; str[i] != '0円'; i++) { diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円216円222円351円230円237円346円270円270円346円210円217円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円216円222円351円230円237円346円270円270円346円210円217円.cpp" index 99bc510..de3d1af 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円216円222円351円230円237円346円270円270円346円210円217円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/346円216円222円351円230円237円346円270円270円346円210円217円.cpp" @@ -1,26 +1,26 @@ /* -園殻籾?3?電錦嗄老 +膽?腮?蘂?鐚?3鐚???????羝御?? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -壓嘛隅坩嶄?析弗芦電弌涛嗔恂匯倖電錦議嗄老。遍枠析弗娼伉議委方朕屢揖議弌槻頃才弌溺頃園電壓匯倖錦双嶄?耽倖弌頃梓凪壓錦双嶄議了崔窟公匯倖園催?園 催貫0蝕兵?。隼朔析弗御盆弌涛嗔断?嫋壓念円議弌槻頃辛參才麿朔円屢惣議弌溺頃返性返宣蝕錦双?複噫議弌涛嗔嶷仟嫋贈?壅梓念朔屢惣議弌槻頃弌溺頃返性 返宣蝕錦双嗄老?泌緩吏鹸。喇噐縮弗娼伉議芦電?如挫辛參隠屬耽曾倖弌涛嗔脅嬬返性返宣蝕錦双?旺拝恷朔宣蝕議曾倖弌涛嗔頁園催恷弌議才恷寄議曾倖弌涛 嗔。?廣?峪嗤弌槻頃壓念?弌溺頃壓朔?拝麿断曾岻寂短嗤凪麿議弌涛嗔?麿断嘉嬬返性返宣蝕錦双?。萩功象析弗議電錦?梓弌溺頃園催貫弌欺寄議乏會?公竃 侭嗤返性返宣蝕錦双議弌槻頃才弌溺頃議園催斤。 +???綛弱?水?TEL賢鐚????絽?絎????絨??????????筝?筝?????????羝御?????薤???????絽?膕上??????????亥?勛?後?????絨???桁9???絨鎁喝9膽???????筝?筝??????筝昭和??罸鋇??鎕ð????九???????筝下??篏?臀???膸?筝?筝????埦??膽? ?垬??0綣?紮?鐚??????九?????絽????莚?絨???????篁ロ??腴???????莨合??絨???桁9?櫆札???篁????莨合?檎?紫??絨鎁喝9?????????胼糸????????鐚???î?????絨????????????亥?????????????????????檎?紫??絨???桁9絨鎁喝9?????? ???胼糸????????羝御???絋?罩ゅ??紊??????延?????絽?膕上?????絎????鐚???医ソ?櫆札篆?莚?罸鋇や肩絨?????????処?醇????????胼糸????????鐚?綛銀????????胼糸?????筝や肩絨?????????夌???垽??絨??????????紊х??筝や肩絨???? ??????鐚?羈Ǎ???Ŭ??絨???桁9??????鐚?絨鎁喝9??????鐚?筝?篁?篁コ犬箙???贋押?????銀?????絨???????鐚?篁?篁シ????醇????????胼糸????????鐚????莚傑?号?勤??絽??????????鐚????絨鎁喝9膽??垬??絨???医ぇ???蕁阪???膸???? ???????????????胼糸???????????絨???桁9???絨鎁喝9???膽??垸噲??? -補秘 +莨???? -喘匯倖忖憲堪旗燕弌涛嗔錦双。忖憲堪嶄峪氏竃孖曾倖忖憲?劔箭補秘戦喘議頁 凄催徽糞縞方象夸音匯協??蛍艶旗燕弌槻頃才弌溺頃?遍枠竃孖議忖憲旗燕弌槻頃?総匯倖忖憲旗燕弌溺頃。弌頃悳方音階狛100 +???筝?筝???膃?顕篁h;絨????????????????絖?膃?顕筝上Ü????榊ー筝や肩絖?膃?????隙??莨???ラ?????????? ??サ垬??絎??????井????筝?筝?絎?鐚?鐚???????撮茵?絨???桁9???絨鎁喝9鐚?薤??????榊ー???絖?膃?撮茵?絨???桁9鐚??Ί??筝???膃?撮茵?絨鎁喝9???絨鎕ð?紙?遺??莇?菴?100 -補竃 +莨???? -梓弌溺頃園催乏會?乏會補竃返性返宣蝕錦双議弌槻頃才弌溺頃議園催斤?耽佩匯斤園催?園催岻寂喘匯倖腎鯉蛍侯。 +???絨鎁喝9膽??埌〆綺??蕁阪?颴???堺????????胼糸???????????絨???桁9???絨鎁喝9???膽??垸噲鐚?罸頫?筝?絲合???埦??膽??垬????雁??筝?筝?Ã??弱???????? -劔箭補秘 +??隙??莨???? ((()(())())(())) -劔箭補竃 +??隙??莨???? 1 2 3 @@ -45,8 +45,8 @@ using namespace std; char boy; /* -泌惚str[start]頁槻伏?夸match卦指嚥岻謄塘議溺伏議會催 -泌惚str[start]頁溺伏?夸卦指乎溺伏會催 +絋????str[start]??夌?欠??鐚????match菴????筝?箙???拷?????絅括?????綺???? +絋????str[start]???コ???鐚????菴????莚ュコ???綺???? */ int match(char str[], int start) { diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/350円247円222円350円260円267円347円214円234円346円203円263円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/350円247円222円350円260円267円347円214円234円346円203円263円.cpp" index 719b4a8..8c7b5db 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/350円247円222円350円260円267円347円214円234円346円203円263円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week3/344円275円234円344円270円232円/350円247円222円350円260円267円347円214円234円346円203円263円.cpp" @@ -1,23 +1,23 @@ /* -園殻籾?2?叔紅佳? +膽?腮?蘂?鐚?2鐚?茹?莪欠????? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -侭僚叔紅佳??頁峺斤噐販吭匯倖屎屁方?泌惚頁謎方?夸核3紗1?泌惚頁甜方?夸茅參2?誼欺議潤惚壅梓孚貧峰号夸嶷鹸侃尖?恷嶮悳嬬校誼欺1。泌?邪協兜兵屁方葎5?柴麻狛殻蛍艶葎16、8、4、2、1。 +???莪?茹?莪欠????鰹????壩??絲剛??篁紙?鋇?筝?3??贋?逸??絋???????????逸?????箙?3???1鐚?絋????????倶?逸???????や札2鐚?緇???亥??膸????????????т??菴域????????紊?紊????鐚????膸???肢?遵??緇????1???絋?鐚????絎????紮???贋?遺減5鐚?莅∞??菴?腮???????減16???8???4???2???1??? -殻會勣箔補秘匯倖屁方?繍将狛侃尖誼欺1議狛殻補竃栖。 +腮?綺頳?羆?莨???ヤ??筝??贋?逸??絨?膸颷?紊????緇????1???菴?腮?莨???堺?ャ?? -補秘 +莨???? -匯倖屎屁方 +筝?筝?3??贋?? -補竃 +莨???? -貫補秘屁方欺1議化帶?耽匯化葎匯佩?耽匯何嶄宙峰柴麻狛殻?邪協補秘葎7?夸補竃葎? +篁?莨???ユ?贋?医??1???罩ラĽ鐚?罸鋇?罩ヤ減筝?茵?鐚?罸鋇????筝中?颷域?∞??菴?腮?鐚????絎?莨???ヤ減7鐚????莨???坂減鐚? 7*3+1=22 22/2=11 11*3+1=34 @@ -34,7 +34,7 @@ 8/2=4 4/2=2 2/2=1 -恷朔匯佩補竃"End"?泌惚補秘葎1?岷俊補竃"End" +??????筝?茵?莨????"End"鐚?絋????莨???ヤ減1鐚???贋・莨????"End" */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/344円272円214円347円273円264円346円225円260円347円273円204円345円217円263円344円270円212円345円267円246円344円270円213円351円201円215円345円216円206円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/344円272円214円347円273円264円346円225円260円347円273円204円345円217円263円344円270円212円345円267円246円344円270円213円351円201円215円345円216円206円.cpp" index 5b223f0..a8a07be 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/344円272円214円347円273円264円346円225円260円347円273円204円345円217円263円344円270円212円345円267円246円344円270円213円351円201円215円345円216円206円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/344円272円214円347円273円264円346円225円260円347円273円204円345円217円263円344円270円212円345円267円246円344円270円213円351円201円215円345円216円206円.cpp" @@ -1,25 +1,25 @@ /* -園殻籾?2: 屈略方怏嘔貧恣和演煽 +膽?腮?蘂?鐚?2: 篋?膸贋?亥???劽??綏????????? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -公協匯倖row佩col双議屁方方怏array?勣箔貫array[0][0]圷殆蝕兵?梓貫恣貧欺嘔和議斤叔?乏會演煽屁倖方怏。 +膸?絎?筝?筝?row茵?col????????贋?井?亥??array鐚?荀?羆?篁?array[0][0]???膣?綣?紮?鐚????篁?綏?????医劽?????絲壕??膾翠〆綺?????????岩肩??亥????? -補秘 +莨???? -補秘議及匯佩貧嗤曾倖屁方?卆肝葎row才col。 +莨???ョ??膃コ??茵?筝????筝や肩??贋?逸??箴?罨>減row???col??? -噫和嗤row佩?耽佩淫根col倖屁方?更撹匯倖屈略屁方方怏。 +篏?筝????row茵?鐚?罸頫???????col筝??贋?逸????????筝?筝ŭ??膸贋?贋?井?亥????? -?廣?補秘議row才col隠屬0 < row < 100, 0 < col < 100? +鐚?羈Ǎ??莨???ョ??row???col篆?莚?0 < row < 100, 0 < col < 100鐚? -補竃 +莨???? -梓演煽乏會補竃耽倖屁方。耽倖屁方媼匯佩。 +?????????蕁阪?颴???堺?鋇??贋?違??罸鋇??贋?医??筝?茵???? */ #include using namespace std; diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/346円226円207円345円255円227円346円216円222円347円211円210円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/346円226円207円345円255円227円346円216円222円347円211円210円.cpp" index 3d821ba..99218a4 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/346円226円207円345円255円227円346円216円222円347円211円210円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/346円226円207円345円255円227円346円216円222円347円211円210円.cpp" @@ -1,23 +1,23 @@ /* -園殻籾?3?猟忖電井 +膽?腮?蘂?鐚?3鐚????絖??????? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -公匯粁哂猟玉猟?汽簡岻寂參腎鯉蛍侯?耽倖汽簡淫凄凪念朔諸惣議炎泣憲催?。萩繍玉猟嶷仟電井?勣箔泌和? +膸?筝?罧笈?掩????中??鐚????莚?箙???岩札腥堺?弱?????鐚?罸鋇???莚??????サ?九?????膣ч?紫???????合??埦?????莚桁????中???????井?????鐚?荀?羆?絋?筝?鐚? -耽佩音階狛80倖忖憲?耽倖汽簡肖噐揖匯佩貧?壓揖匯佩議汽簡岻寂參匯倖腎鯉蛍侯?佩遍才佩硫脅短嗤腎鯉。 +罸頫?筝?莇?菴?80筝???膃???罸鋇???莚?絮?篋????筝?茵?筝?鐚???????筝?茵???????莚?箙???岩札筝?筝?Ã??弱?????鐚?茵?薤????茵?絨冗?醇押???腥堺?若?? -補秘 +莨???? -及匯佩頁匯倖屁方n?燕幣哂猟玉猟嶄汽簡議方朕. 凪朔頁n倖參腎鯉蛍侯議哂猟汽簡?汽簡淫凄凪念朔諸惣議炎泣憲催?拝耽倖汽簡海業脅音寄噐40倖忖銚?。 +膃コ??茵???壚??筝??贋??n鐚?茵?ず??掩????中??筝上??莚??????亥??. ??九?????n筝ŭ札腥堺?弱??????????掩?????莚?鐚????莚??????サ?九?????膣ч?紫???????合??埦??筝?罸鋇???莚???水墾??巡??紊т??40筝???罸?鐚???? -補竃 +莨???? -電井朔議謹佩猟云?耽佩猟云忖憲方恷謹80倖忖憲?汽簡岻寂參匯倖腎鯉蛍侯?耽佩猟云遍硫脅短嗤腎鯉。 +????????????紊?茵??????ロ??罸頫??????サ??膃??井??紊?80筝???膃??????莚?箙???岩札筝?筝?Ã??弱?????鐚?罸頫??????ソ??絨冗?醇押???腥堺?若?? */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/350円256円241円347円256円227円347円237円251円351円230円265円350円276円271円347円274円230円345円205円203円347円264円240円344円271円213円345円222円214円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/350円256円241円347円256円227円347円237円251円351円230円265円350円276円271円347円274円230円345円205円203円347円264円240円344円271円213円345円222円214円.cpp" index 383a40f..04ca20e 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/350円256円241円347円256円227円347円237円251円351円230円265円350円276円271円347円274円230円345円205円203円347円264円240円344円271円213円345円222円214円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week5/344円275円234円344円270円232円/350円256円241円347円256円227円347円237円251円351円230円265円350円276円271円347円274円230円345円205円203円347円264円240円344円271円213円345円222円214円.cpp" @@ -1,27 +1,27 @@ /* -園殻籾?1?柴麻裳專円垉圷殆岻才 +膽?腮?蘂?鐚?1鐚?莅∞????ó?笈捷膽????膣?箙???? -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 +??颷? -補秘匯倖屁方裳專?柴麻了噐裳專円垉議圷殆岻才。侭僚裳專円垉議圷殆?祥頁及匯佩才恷朔匯佩議圷殆參式及匯双才恷朔匯双議圷殆。 +莨???ヤ??筝??贋?亥?ó?居??莅∞??篏?篋???ó?笈捷膽???????膣?箙??????????莪???ó?笈捷膽???????膣?鐚?絨掩?夌?筝?茵??????????筝?茵???????膣?篁ュ??膃コ??????????????筝??????????膣???? -補秘 +莨???? -及匯佩葎屁方k?燕幣嗤k怏方象。 +膃コ??茵?筝堺?贋??k鐚?茵?ず???k膸???井?勉?? -耽怏方象嗤謹佩怏撹?燕幣匯倖裳專? +罸靳???井?勖??紊?茵?膸????鐚?茵?ず筝?筝??ó?居?? -及匯佩蛍艶葎裳專議佩方m才双方n?m < 100?n < 100??曾宀岻寂參腎鯉蛍侯。 +膃コ??茵???????減??ó?窮??茵????m?????????n鐚?m < 100鐚?n < 100鐚?鐚?筝よ??箙???岩札腥堺?弱???????? -俊和栖補秘議m佩方象嶄?耽佩淫根n倖屁方?屁方岻寂參腎鯉恬葎寂侯。 +?・筝???ヨ????ョ??m茵???井?勌賢鐚?罸頫???????n筝??贋?逸????贋?遺????岩札腥堺?寂??筝咲?顔????? -補竃 +莨???? -補竃斤哘裳專議円垉圷殆才?匯倖匯佩。 +莨???阪噲綺???ó?窮??莨合?????膣????鐚?筝?筝ŭ??茵???? */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円210円206円351円205円215円347円227円205円346円210円277円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円210円206円351円205円215円347円227円205円346円210円277円.cpp" index 532463a..1465c80 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円210円206円351円205円215円347円227円205円346円210円277円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円210円206円351円205円215円347円227円205円346円210円277円.cpp" @@ -1,27 +1,27 @@ /* -園殻籾?1?蛍塘押型 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?1鐚????????????? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -蝶倖親片議押型蛍葎嶷屏才噸宥?峪嗤輝押繁議鴫押冢嶷殻業階狛阻秘廖嶷屏押型議恷詰冢嶷峙?嘉辛參芦電秘廖嶷屏押型。 +??颷? +???筝???絎ょ???????水??筝咲??????????勰??鐚??Ŭ??綵????篋榊????丞??筝ラ??腮?綺???菴?篋???ヤ?????????????睡?????篏?筝ラ????種??????櫆札絎??????ヤ?????????????帥?? -孖壓勣箔譜柴匯倖殻會?公押繁芦電挫押型。鴫押議冢嶷殻業喘0欺10栖燕幣?0燕幣弌谷押?10燕幣掲械冢嶷。 +?ー?????羆?莅乗?>??筝???綺??膸????篋阪?????絅順????帥????丞?????筝ラ??腮?綺???0???10??ヨ;腓削??0茵?ず絨閴????鐚?10茵?ず???絽娯献?????? -補秘 -及匯佩補秘押繁議倖方m(m < 50)?參式芦電廖秘嶷屏押型議恷詰冢嶷峙a +莨???? +膃コ??茵?莨???ョ??篋榊??筝???m(m < 50)鐚?篁ュ??絎????篏???ラ??????????睡?????篏?筝ラ?????a -諸俊彭m佩?耽佩燕幣押繁園催?眉倖了?喘0温馴?式凪鴫押議冢嶷殻業?検泣方?1了弌方?。 +膣ф・???m茵?鐚?罸頫?茵?ず???篋榊???埦??筝?筝ŭ??鐚????0茵ラ??鐚??????句?丞?????筝ラ??腮?綺???羌勛?号?逸??1篏?絨???逸????? -耽倖押繁議鴫押冢嶷殻業脅音匯劔。 +罸鋇???篋榊????丞??筝ラ??腮?綺??巡??筝???激?? -補竃 -勣箔梓孚押繁議冢嶷殻業補竃廖壓嶷屏押型戦議押繁議園催 +莨???? +荀?羆??????х??篋榊??筝ラ??腮?綺?????坂???????????????翠????????篋榊??膽???? -廣吭? +羈????? -泌惚輝念侭嗤押繁議冢嶷殻業旺音諾怎廖壓嶷屏押型戦?夸補竃^None. ??音淫凄哈催? +絋????綵?????????????篋榊??筝ラ??腮?綺?攻筝?羯∴恭篏??????????????翠??鐚????莨???財??None.???鐚?筝??????サ???埦?? */ #include @@ -36,7 +36,7 @@ int main() int id[50]; float acuity[50]; - int num = 0; //嶷屏押繁倖方 + int num = 0; //?????????篋坂肩??? for (int i = 0; i < m; i++) { int tmpId; diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円257円273円346円211円276円345円261円261円351円241円266円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円257円273円346円211円276円345円261円261円351円241円266円.cpp" index 32bb019..64f1c8e 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円257円273円346円211円276円345円261円261円351円241円266円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/345円257円273円346円211円276円345円261円261円351円241円266円.cpp" @@ -1,19 +1,19 @@ /* -園殻籾?3?儖孀表競 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?3鐚?絲紙?上臼蕁? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -壓匯倖m〜n議表仇貧?厮岑耽倖仇翠議峠譲互殻?萩箔竃侭嗤表競侭壓議仇翠?侭僚表競?祥頁凪仇翠峠譲互殻音曳凪貧和恣嘔屢惣議膨倖仇翠耽倖仇翠議峠譲互殻弌議仇圭)。 +??颷? +???筝?筝?m??n???絮怨?遺??鐚?綏牙?ユ?鋇??医?????綛喝??蕭?腮?鐚?莚傑????堺?????絮演ゞ??????????医??鐚????莪?絮演ゞ鐚?絨掩???九?医??綛喝??蕭?腮?筝?罸???銀??筝?綏?勆?檎?紫?????筝??医??罸鋇??医?????綛喝??蕭?腮?絨??????井??)??? -補秘 -及匯佩頁曾倖屁方?燕幣表仇議海m?5+m+20?才錐n?5+n+20?。 +莨???? +膃コ??茵???壚犬筝??贋?逸??茵?ず絮怨?亥?????m鐚?5???m???20鐚????絎?n鐚?5???n???20鐚???? -凪朔m佩葎匯倖m〜n議屁方裳專?燕幣耽倖仇翠議峠譲互殻。耽佩議屁方寂喘匯倖腎鯉蛍侯。 +??九??m茵?筝坂??筝?m??n?????贋?亥?ó?居??茵?ず罸鋇??医?????綛喝??蕭?腮????罸頫??????贋?育?雁??筝?筝?Ã??弱???????? -補竃 -補竃侭嗤貧競侭壓仇翠議了崔。耽佩匯倖。梓枠m峙貫弌欺寄?壅n峙貫弌欺寄議乏會補竃。 +莨???? +莨???堺?????筝?蕁倶???????医?????篏?臀勉??罸頫?筝?筝ŝ????????m??寂??絨???医ぇ鐚????n??寂??絨???医ぇ???蕁阪?颴???冴?? */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/351円205円215円345円257円271円347円242円261円345円237円272円351円223円276円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/351円205円215円345円257円271円347円242円261円345円237円272円351円223円276円.cpp" index 0cdf7a0..1e17ecc 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/351円205円215円345円257円271円347円242円261円345円237円272円351円223円276円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week6/344円275円234円344円270円232円/351円205円215円345円257円271円347円242円261円345円237円272円351円223円276円.cpp" @@ -1,22 +1,22 @@ /* -園殻籾?2? 塘斤珠児全 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?2鐚? ???絲合-??咲?? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -用剳宰滅宰磨?DNA?喇曾訳札温議珠児全參褒苔傴議圭塀潤栽遇撹。遇更撹DNA議珠児慌嗤4嶽?蛍艶葎寘遘瀛?A?、抵猾瀛?G?、俟寘獨爐?T?才飲獨爐?C?。厘断岑祇?壓曾訳札温珠児全議斤哘了崔貧?寘遘瀛悳頁才俟寘獨爐塘斤?抵猾瀛悳頁才飲獨爐塘斤。低議販暦祥頁功象匯訳汽全貧議珠児會双?公竃斤哘議札温全貧議珠児會双。 +??颷? +??掩挨??悟????檎?醐??DNA鐚???延犬??>??茵ョ??腆怨?咲?鞘札?????堺???????劫?靳??????????????????????DNA???腆怨?阪?掩??4腱?鐚???????減??榊????わ??A鐚????藐??????わ??G鐚??????梧?阪?у?駈??T鐚?????????у?駈??C鐚???????篁ス?ラ??鐚????筝ゆ?>??茵ョ-??咲?丞??絲劫??篏?臀勌??鐚???榊????ゆ?紙??????梧?阪?у?狗??絲刻??藐??????ゆ?紙?????????у?狗??絲鴻??篏????篁糸?≦葦??壩?号?勌????≦????鞘?????腆怨?阪?????鐚?膸???阪噲綺????篋?茵ラ?鞘?????腆怨?阪???????? -補秘 -及匯佩頁匯倖屎屁方n?燕苧慌嗤n訳勣箔盾議珠児全。 +莨???? +膃コ??茵???壚??筝?3??贋??n鐚?茵??????掩??n??∴??羆?茹g??腆怨?咲?障?? -參和慌嗤n佩?耽佩喘匯倖忖憲堪燕幣匯訳珠児全。宸倖忖憲堪峪根嗤寄亟忖銚A、T、G、C?蛍艶燕幣寘遘瀛、俟寘獨爐、抵猾瀛才飲獨爐。耽訳珠児全議海業脅音階狛255。 +篁ヤ????掩??n茵?鐚?罸頫????筝?筝???膃?顕茵?ず筝???∞-??咲?障??菴?筝???膃?顕?Û?????紊у??絖?罸?A???T???G???C鐚???????;腓肴?榊????ゃ????梧?阪?у?吟??藐??????ゅ???????у?吟??罸???∞-??咲?丞????水墾??巡??莇?菴?255??? -補竃 -慌嗤n佩?耽佩葎匯倖峪根嗤寄亟忖銚A、T、G、C議忖憲堪。蛍艶葎嚥補秘議光珠児全札温議珠児全。 +莨???? +??掩??n茵?鐚?罸頫?筝坂??筝?Û?????紊у??絖?罸?A???T???G???C???絖?膃?顕?????????減筝?莨???ョ?????腆怨?咲?鞘??茵ョ??腆怨?咲?障?? */ -// 峺寞恂侘歌?卦指峺寞?床蓑蕉何延楚 +// ?????????綵√??鐚?菴??????????鐚???????絮?????????? #include #include using namespace std; @@ -49,7 +49,7 @@ int main() { int n = 0; cin>> n; - cin.get(); // 響渠算佩憲 + cin.get(); // 莚紙????∵??膃? for (int i = 0; i < n; i++) { char DNA[256]; @@ -60,7 +60,7 @@ int main() return 0; } -// 岷俊箔盾匆辛參 +// ??贋・羆?茹d???櫆札 //#include //#include //using namespace std; @@ -69,7 +69,7 @@ int main() //{ // int n = 0; // cin>> n; -// cin.get(); // 響渠算佩憲 +// cin.get(); // 莚紙????∵??膃? // for (int i = 0; i < n; i++) // { // char DNA[256]; diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円220円253円K344円270円2523円347円232円204円344円270円252円346円225円260円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円220円253円K344円270円2523円347円232円204円344円270円252円346円225円260円.cpp" index 536383e..67c7e8b 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円220円253円K344円270円2523円347円232円204円344円270円252円346円225円260円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円220円253円K344円270円2523円347円232円204円344円270円252円346円225円260円.cpp" @@ -1,29 +1,29 @@ /* -園殻籾?1?根k倖3議方 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?1鐚????k筝?3?????? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -補秘屈倖屎屁方m 才 k?凪嶄1 < m < 100000?1 < k <5 ?登僅m 嬬倦瓜19屁茅?拝如挫根嗤k倖3?泌惚諾怎訳周?夸補竃YES?倦夸?補竃NO。 +??颷? +莨???ヤ??筝?3??贋??m ??? k鐚???銀賢1 < m < 100000鐚?1 < k <5 鐚???ゆ??m ??遵??←19??顔?わ??筝???医ソ??????k筝?3鐚?絋????羯∴恭??>散鐚????莨????YES鐚??????鐚?莨????NO??? -箭泌?補秘? +箴?絋?鐚?莨???ワ?? 43833 3 -諾怎訳周?補竃YES +羯∴恭??>散鐚?莨????YES -泌惚補秘 +絋????莨???? 39331 3 -勝砿嗤3倖3?徽音嬬瓜19屁茅?匆音諾怎訳周?哘補竃NO +絨順?≧??3筝?3鐚?篏?筝???処←19??顔?わ??箙?筝?羯∴恭??>散鐚?綺?莨????NO -補秘 -m 才 k 議峙?腎鯉寂侯 +莨???? +m ??? k ?????種??腥堺?守?顔?? -補竃 -諾怎訳周扮補竃 YES?音諾怎扮補竃 NO +莨???? +羯∴恭??>散??区????? YES鐚?筝?羯∴恭??区????? NO */ #include diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円255円227円347円254円246円344円270円262円344円270円255円346円254円241円346円225円260円347円254円2542円345円244円232円347円232円204円345円255円227円346円257円215円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円255円227円347円254円246円344円270円262円344円270円255円346円254円241円346円225円260円347円254円2542円345円244円232円347円232円204円345円255円227円346円257円215円.cpp" index 46beec4..9b23805 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円255円227円347円254円246円344円270円262円344円270円255円346円254円241円346円225円260円347円254円2542円345円244円232円347円232円204円345円255円227円346円257円215円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円255円227円347円254円246円344円270円262円344円270円255円346円254円241円346円225円260円347円254円2542円345円244円232円347円232円204円345円255円227円346円257円215円.cpp" @@ -1,25 +1,25 @@ /* -園殻籾?2?忖憲堪嶄肝方及2謹議忖銚 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?2鐚?絖?膃?顕筝中???亥?2紊????絖?罸? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -補秘匯堪海業音階狛500倖憲催議忖憲堪?補竃壓堪嶄竃孖及2謹議哂囂忖銚(寄弌亟忖銚範葎屢揖)才肝方?泌惚堪嶄嗤凪万憲催?夸策待音深打?。泌惚嗤謹倖忖銚議肝方脅頁及2謹?夸梓堪嶄忖銚竃孖議乏會補竃及1倖。 +??颷? +莨???ヤ??筝臥?水墾筝?莇?菴?500筝???埇??絖?膃?顕鐚?莨???阪??筝俄賢??榊ー膃?2紊??????沿喭絖?罸?(紊у?????絖?罸?莅や減??後??)???罨≧?逸??絋????筝俄賢?????九??膃?埦?????綽順?ヤ????????鐚????絋???????紊?筝???罸????罨≧?育?醇?夌?2紊?鐚???????筝俄賢絖?罸???榊ー???蕁阪?颴???榊?1筝ŝ?? -箭 ab&dcAab&c9defgb +箴? ab&dcAab&c9defgb -宸戦?a 才 b脅竃孖3肝?c才d脅竃孖2肝?e、f 才 g 光竃孖1肝?凪嶄議憲催&才9譲策待音深打。咀緩?竃孖及2謹議哘乎頁 c 才 d?徽頁 d 蝕兵竃孖議了崔壓 c 議念中?咀緩?補竃葎 +菴????鐚?a ??? b??遵?榊ー3罨\??c???d??遵?榊ー2罨\??e???f ??? g ?????榊ー1罨\????銀賢???膃???&???9???綽順?ヤ??????????????罩わ????榊ー膃?2紊????綺?莚ユ?? c ??? d鐚?篏???? d 綣?紮???榊ー???篏?臀??? c ??????????????罩わ??莨???坂減 D+d:2 -(邪協壓忖憲堪嶄?肝方及2謹議忖銚悳贋壓) +(???絎????絖?膃?顕筝昭和??罨≧?亥?2紊????絖?罸???糸?????) -補秘 -匯倖忖憲堪 +莨???? +筝?筝???膃?顕 -補竃 -寄亟忖銚+弌亟忖銚:倖方 +莨???? +紊у??絖?罸?+絨????絖?罸?:筝??? */ #include @@ -28,10 +28,10 @@ using namespace std; struct Alphabet { - char letter; // 忖銚?音曝蛍寄弌亟 - int fisrtShowIndex; // 及匯肝竃孖議index - int count; // 忖銚竃孖議肝方 - bool show; // 忖銚頁倦竃孖 + char letter; // 絖?罸?鐚?筝???阪??紊у????? + int fisrtShowIndex; // 膃コ??罨≦?榊ー???index + int count; // 絖?罸???榊ー???罨≧?? + bool show; // 絖?罸???????榊ー }; int main() @@ -39,7 +39,7 @@ int main() char str[500]; cin.getline(str, 500); - // 忖銚燕兜兵晒 + // 絖?罸?茵????紮???? Alphabet alphabet[26]; for (int i = 0; i < 26; i++) { @@ -49,7 +49,7 @@ int main() alphabet[i] = { char(97 + i),0,0,false }; } - // 侃尖忖憲堪 + // 紊????絖?膃?顕 for (int i = 0; str[i] != '0円'; i++) { str[i] = tolower(str[i]); @@ -65,7 +65,7 @@ int main() } } - // 孀竃及屈寄拝恷枠竃孖議忖銚 + // ??上?榊?篋?紊т??????????榊ー???絖?罸? Alphabet max = { 0,0,0 }, second = { 0,501,0 }; for (int i = 0; i < 26; i++) { diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円257円273円346円211円276円345円271円263円351円235円242円344円270円212円347円232円204円346円236円201円345円244円247円347円202円271円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円257円273円346円211円276円345円271円263円351円235円242円344円270円212円347円232円204円346円236円201円345円244円247円347円202円271円.cpp" index ce6465f..698058e 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円257円273円346円211円276円345円271円263円351円235円242円344円270円212円347円232円204円346円236円201円345円244円247円347円202円271円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/345円257円273円346円211円276円345円271円263円351円235円242円344円270円212円347円232円204円346円236円201円345円244円247円347円202円271円.cpp" @@ -1,29 +1,29 @@ /* -園殻籾?4?儖孀峠中貧議自寄泣 -栖坿 POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?4鐚?絲紙?上抗??≫????????紊х?? +??ユ?? POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙 1000ms 坪贋尫崙 65536kB +羈????? ??紙?狗?顔????? 1000ms ???絖??????? 65536kB -宙峰 -壓匯倖峠中貧?泌惚嗤曾倖泣(x,y),(a,b),泌惚傍(x,y)屶塘阻(a,b)?宸頁峺x=a,y=b; +??颷? +???筝?筝?抗??≫??鐚?絋???????筝や肩???(x,y),(a,b),絋????莚?(x,y)??奝??篋?(a,b)鐚?菴???壩??x=a,y=b; -喘夕侘栖心祥頁(a,b)恫鯛壓參(x,y)葎嘔貧叔議匯倖涙尫議曝囃坪。 +?????上就??ョ??絨掩??(a,b)?????遵??篁?(x,y)筝阪劽??茹????筝?筝???????????阪???????? -公協n倖泣議鹿栽?匯協贋壓飛孤倖泣?万断音氏瓜鹿栽嶄議販採匯泣侭屶塘?宸乂泣出恂自寄峙泣。 +膸?絎?n筝??合????????鐚?筝?絎?絖?????ュ慌筝??刻??絎?篁コ??篌?茴??????筝下??篁私??筝???号????奝??鐚?菴?篋???劫û?????紊у?主?鴻?? -園殻孀竃侭嗤議自寄泣?梓孚x恫炎喇弌欺寄?補竃自寄泣議恫炎。 +膽?腮???上?堺???????????紊х?刻????????x????????怨????医ぇ鐚?莨???堺??紊х?合??????????? -云籾号協?n音階狛100?旺拝音深打泣議恫炎葎減方議秤趨。 +??ソ??茹?絎?鐚?n筝?莇?菴?100鐚?綛銀??筝?????????合????????筝肴????亥???????泣?? -補秘 -補秘淫凄曾佩?及匯佩頁屎屁方n?燕幣頁泣方?及屈佩淫根n倖泣議恫炎?恫炎峙脅頁屁方?恫炎袈律貫0欺100?補秘方象嶄音贋壓恫炎屢揖議泣。 +莨???? +莨???ュ????コ犬茵?鐚?膃コ??茵???壩3??贋??n鐚?茵?ず??夌?号?逸??膃コ??茵???????n筝??合????????鐚?????????守?醇?壩?贋?逸?????????????岩??0???100鐚?莨???ユ?井?勌賢筝?絖????????????後???????鴻?? -補竃 -梓x已恫炎恷弌欺寄議乏會補竃侭嗤自寄泣。 +莨???? +???x莉翫????????絨???医ぇ???蕁阪?颴???堺????????紊х?鴻?? -補竃鯉塀葎(x1,y1),(x2,y2),...(xk,yk) +莨???堺?弱?鋇?(x1,y1),(x2,y2),...(xk,yk) -廣吭?補竃議耽倖泣岻寂嗤,蛍侯,恷朔匯倖泣岻朔短嗤,,富補竃才謹補竃脅氏瓜登危 +羈?????莨???榊??罸鋇??剛????贋??,??????,??????筝?筝??剛?????羃≧??,,絨?莨???阪??紊?莨???咲?巡??茴???ら?? */ #include @@ -38,7 +38,7 @@ struct Point int main() { - // 泣議倖方 + // ??合??筝??? int n = 0; cin>> n; @@ -48,9 +48,9 @@ int main() cin>> point[i].x>> point[i].y; } - // 孀竃侭嗤議自寄峙泣?旺隠贋壓maxPoint[100]嶄 + // ??上?堺???????????紊у?主?刻??綛銀??絖????maxPoint[100]筝? Point maxPoint[100]; - int num = 0; // 自寄峙泣議倖方 + int num = 0; // ???紊у?主?合??筝??? for (int i = 0; i < n; i++) { bool isMaxPoint = true; @@ -72,7 +72,7 @@ int main() } } - // 功象罪恫炎電會?丹倒電會 + // ??号?勖┴?????????綺?????羈≧??綺? for (int i = 0; i < num; i++) { for (int j = 1; j < num; j++) @@ -86,12 +86,12 @@ int main() } } - // 補竃恷朔潤惚 + // 莨???堺?????膸???? for (int i = 0; i < num - 1; i++) { cout << "(" << maxPoint[i].x << "," << maxPoint[i].y << "),"; } - // 喇噐鯉塀勣箔?恷朔匯倖汽鏡補竃 + // ??延????弱?頳?羆?鐚???????筝?筝?????セ????? cout << "(" << maxPoint[num - 1].x << "," << maxPoint[num - 1].y << ")" << endl; return 0; } \ No newline at end of file diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円265円260円345円207円272円350円277円267円345円256円253円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円265円260円345円207円272円350円277円267円345円256円253円.cpp" index b17af2d..24c2b28 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円265円260円345円207円272円350円277円267円345円256円253円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円265円260円345円207円272円350円277円267円345円256円253円.cpp" @@ -1,38 +1,38 @@ /* -園殻籾?5?恠竃痴幸 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?5鐚?莎医?肴新絎? +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -輝低嫋壓匯倖痴幸戦議扮昨?吏吏氏瓜危忝鹸墫議祇揃的誼払肇圭?湖?泌惚低嬬誼欺痴幸仇夕?並秤祥氏延誼掲械酒汽。 +??颷? +綵?篏?腴????筝?筝?新絎????????九??鐚?緇?緇?篌?茴???膸弱???????????莊???緇?紊怨サ??劫?????鐚?絋????篏???遵????域新絎???医?常??篋????絨延?????緇????絽悟???????? -邪譜低厮将誼欺阻匯倖n*m議痴幸議夕崕?萩低孀竃貫軟泣欺竃笥議恷玉揃。 +???莅鞘??綏牙?鏅???遺??筝?筝?n*m???菴桁伃?????丞左鐚?莚隙????上?坂??莎欠?劫?医?阪????????左君??? -補秘 -及匯佩頁曾倖屁方n才m(1 <= n,m <= 100)?燕幣痴幸議佩方才双方。 +莨???? +膃コ??茵???壚犬筝??贋??n???m(1 <= n,m <= 100)鐚?茵?ず菴桁伃???茵???医???????違?? -俊和栖n佩?耽佩匯倖海葎m議忖憲堪?燕幣屁倖痴幸議下蕉。忖憲'.'燕幣腎仇?'#'燕幣能?'S'燕幣軟泣,'T'燕幣竃笥。 +?・筝????n茵?鐚?罸頫?筝?筝??推減m???絖?膃?顕鐚?茵?ず??岩肩菴桁伃???絽?絮????絖?膃?'.'茵?ず腥阪?逸??'#'茵?ず紜?鐚?'S'茵?ず莎欠??,'T'茵?ず??阪叵?? -補竃 -補竃貫軟泣欺竃笥恷富俶勣恠議化方。(低音嬬軟竃痴幸翌) +莨???? +莨???坂??莎欠?劫?医?阪吨??絨????荀?莎亥??罩ユ?違??(篏?筝???処儀??肴新絎?紊?) */ #include using namespace std; -int n, m; // 佩方?双方 -int Step[100][100] = { 0 }; // 化方裳專 +int n, m; // 茵???逸???????? +int Step[100][100] = { 0 }; // 罩ユ?亥?ó?? /* - * 演煽痴幸辛恠議揃?旺拝委輝念化方芝村壓Step裳專嶄?嶷鹸議了崔登僅化方?泌惚化方厚富夸紋算 + * ??????菴桁伃?櫝軌???莊姒??綛銀?????綵????罩ユ?域佖綵????Step??ó?灸賢鐚????紊????篏?臀??ゆ?中5??逸??絋????罩ユ?井?翫???????炊?? * - * 補秘? - * char map[][100]: 仇夕 - * int row: 輝念侭壓佩 - * int col: 輝念侭壓双 - * int step: 卞強欺輝念了崔侭佩恠議化方 - * 恷嶮化方隠贋壓Step裳專壓竃笥了崔 + * 莨???ワ?? + * char map[][100]: ??医?? + * int row: 綵???????????? + * int col: 綵????????????? + * int step: 腱糸????医?????篏?臀勖??茵?莎亥??罩ユ?? + * ???膸?罩ユ?遺??絖????Step??ó?球????阪???臀? */ void move(char map[][100], int row, int col, int step) @@ -46,7 +46,7 @@ void move(char map[][100], int row, int col, int step) { return; } - // 恷朔匯倖訳周契峭方怏埆順 + // ??????筝?筝??>散??我2??亥??莇???? if ((map[row + 1][col] == '.' || map[row + 1][col] == 'T') && row + 1 < n) { move(map, row + 1, col, step + 1); @@ -88,7 +88,7 @@ int main() endRow = i; endCol = j; } - // 化方恷謹葎 100*100 = 10000 + // 罩ユ?井??紊?筝? 100*100 = 10000 Step[i][j] = 10000; } } diff --git "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円277円220円347円256円227円347円254円246円345円210円244円345円256円232円.cpp" "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円277円220円347円256円227円347円254円246円345円210円244円345円256円232円.cpp" index 5f5e18b..cf425f6 100644 --- "a/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円277円220円347円256円227円347円254円246円345円210円244円345円256円232円.cpp" +++ "b/2.C347円250円213円345円272円217円350円256円276円350円256円241円350円277円233円351円230円266円/week9(final)/350円277円220円347円256円227円347円254円246円345円210円244円345円256円232円.cpp" @@ -1,35 +1,35 @@ /* -園殻籾?3?塰麻憲登協 -栖坿 POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?3鐚?菴?膊?膃??ゅ?? +??ユ?? POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙 1000ms 坪贋尫崙 65536kB +羈????? ??紙?狗?顔????? 1000ms ???絖??????? 65536kB -宙峰 -曾倖屁方 a 才 b 塰麻朔誼欺潤惚 c。燕幣葎?a b = c?凪嶄??辛嬬頁紗隈 +?受隈 -?核隈 ?屁茅 賜 函噫 %。萩功象補秘議 a,b,c 議峙?鳩協塰麻憲。泌惚蝶嶽塰麻撹羨?夸補竃屢哘議塰麻憲?泌惚販採塰麻脅音撹羨?夸補竃 error. +??颷? +筝や肩??贋?? a ??? b 菴?膊????緇???亥????? c???茵?ず筝削??a b = c鐚???銀賢鐚?鐚??櫝?醇????羈? +鐚???閿? -鐚?箙?羈? 鐚???顔?? ??? ???篏? %???莚傑?号?勤????ョ?? a,b,c ?????種??隋???菴?膊?膃???絋???????腱?菴?膊????腴?鐚????莨???榊?後?????菴?膊?膃???絋????篁私??菴?膊???巡?????腴?鐚????莨???? error. -箭泌? +箴?絋?鐚? -補秘? +莨???ワ?? 3,4,5 -補竃? +莨???削?? error -飛補秘? +??ヨ????ワ?? 3,4,3 -夸補竃? +???莨???削?? % -補秘 -a b才 c 議峙壓吭佩坪補秘?參矯催寂侯 +莨???? +a b??? c ?????弱????頫????莨???ワ??篁ラ???埌?顔?? -補竃 -励倖塰麻憲岻匯賜 error +莨???? +篋?筝???膊?膃???筝???? error */ #include diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/MyString.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/MyString.cpp" index 132d073..69104bf 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/MyString.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/MyString.cpp" @@ -4,7 +4,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? class MyString : public string { public: @@ -56,9 +56,9 @@ int main() qsort(SArray, 4, sizeof(MyString), CompareString); for (int i = 0; i < 4; i++) cout << SArray[i] << endl; - //s1議貫和炎0蝕兵海業葎4議徨堪 + //s1???篁?筝????0綣?紮???水墾筝?4???絖?筝? cout << s1(0, 4) << endl; - //s1議貫和炎5蝕兵海業葎10議徨堪 + //s1???篁?筝????5綣?紮???水墾筝?10???絖?筝? cout << s1(5, 10) << endl; return 0; } \ No newline at end of file diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/344円272円272円347円276円244円347円232円204円346円216円222円345円272円217円345円222円214円345円210円206円347円261円273円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/344円272円272円347円276円244円347円232円204円346円216円222円345円272円217円345円222円214円345円210円206円347円261円273円.cpp" index 76c3837..30f5be7 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/344円272円272円347円276円244円347円232円204円346円216円222円345円272円217円345円222円214円345円210円206円347円261円273円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/344円272円272円347円276円244円347円232円204円346円216円222円345円272円217円345円222円214円345円210円206円347円261円273円.cpp" @@ -4,7 +4,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? class A { public: diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/345円255円227円347円254円246円344円270円262円346円216円222円345円272円217円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/345円255円227円347円254円246円344円270円262円346円216円222円345円272円217円.cpp" index c138ebd..55b4c4b 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/345円255円227円347円254円246円344円270円262円346円216円222円345円272円217円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/345円255円227円347円254円246円344円270円262円346円216円222円345円272円217円.cpp" @@ -27,7 +27,7 @@ class A { } }; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? bool operator<(const A &a1, const A &a2) { return a1.get_size() < a2.get_size(); diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/346円225円260円346円215円256円345円272円223円345円206円205円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/346円225円260円346円215円256円345円272円223円345円206円205円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円.cpp" index 5892781..59801ee 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/346円225円260円346円215円256円345円272円223円345円206円205円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/346円225円260円346円215円256円345円272円223円345円206円205円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円.cpp" @@ -5,7 +5,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? #include template> class MyMultimap :public multimap @@ -50,9 +50,9 @@ int main() MyMultimap mp; for (int i = 0; i<5; ++i) mp.insert(make_pair(s[i].name, s[i].score)); - Print(mp.begin(), mp.end()); //梓侖兆貫寄欺弌補竃 + Print(mp.begin(), mp.end()); //???紮????篁?紊у?医?颴???? - mp.Set("Tom", 78); //委侭嗤兆葎"Tom"議僥伏議撹示脅譜崔葎78 + mp.Set("Tom", 78); //????????????筝?"Tom"???絖?????????膸ó?処倘臀勌減78 Print(mp.begin(), mp.end()); @@ -60,8 +60,8 @@ int main() for (int i = 0; i<5; ++i) mp2.insert(make_pair(s[i].score, s[i].name)); - Print(mp2.begin(), mp2.end()); //梓撹示貫弌欺寄補竃 - mp2.Set(70, "Error"); //委侭嗤撹示葎70議僥伏?兆忖脅個葎"Error" + Print(mp2.begin(), mp2.end()); //??????膸î??絨???医ぇ莨???? + mp2.Set(70, "Error"); //????????????膸î減70???絖???鐚????絖???醇?剛減"Error" Print(mp2.begin(), mp2.end()); cout << "******" << endl; diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円345円210円227円345円271円263円346円226円271円345円222円214円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円345円210円227円345円271円263円346円226円271円345円222円214円.cpp" index 2774c0f..0420401 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円345円210円227円345円271円263円346円226円271円345円222円214円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円345円210円227円345円271円263円346円226円271円345円222円214円.cpp" @@ -1,7 +1,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? int sum(const int *array, int num, int(*func)(int n)) { int sum = 0; diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円347円273円204円347円232円204円344円275円2163円344円275円215円344円271円213円345円222円214円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円347円273円204円347円232円204円344円275円2163円344円275円215円344円271円213円345円222円214円.cpp" index ccbd826..41678c3 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円347円273円204円347円232円204円344円275円2163円344円275円215円344円271円213円345円222円214円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円260円347円273円204円347円232円204円344円275円2163円344円275円215円344円271円213円345円222円214円.cpp" @@ -3,7 +3,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? struct CMy_add { int ∑ diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円264円346円225円260円345円271円263円346円226円271円345円222円214円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円264円346円225円260円345円271円263円346円226円271円345円222円214円.cpp" index d0666b8..d95e0b6 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円264円346円225円260円345円271円263円346円226円271円345円222円214円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円256円241円347円256円227円346円225円264円346円225円260円345円271円263円346円226円271円345円222円214円.cpp" @@ -1,7 +1,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? class CType { public: diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272200円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272200円.cpp" index f2c137c..3dea621 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272200円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272200円.cpp" @@ -4,7 +4,7 @@ class Number { public: int num; Number(int n = 0) : num(n) {} - // 壓緩侃温割低議旗鷹 + // ???罩ゅ??茵ュ??篏????篁g?? Number operator*(Number &n) { return Number(num*n.num); diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2341円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2341円.cpp" index 1e980ab..617a149 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2341円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2341円.cpp" @@ -4,7 +4,7 @@ class Number { public: int num; Number(int n) : num(n) { } - // 壓緩侃温割低議旗鷹 + // ???罩ゅ??茵ュ??篏????篁g?? int& value() { return num; diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2342円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2342円.cpp" index acd7d03..3b47575 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2342円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week10(final)/350円276円223円345円207円272円346円214円207円345円256円232円347円273円223円346円236円2342円.cpp" @@ -2,7 +2,7 @@ #include
    using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? class A { public: diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円256円200円345円215円225円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円345円244円204円347円220円206円347円250円213円345円272円217円345円256円236円347円216円260円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円256円200円345円215円225円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円345円244円204円347円220円206円347円250円213円345円272円217円345円256円236円347円216円260円.cpp" index 381ebc1..fc569b6 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円256円200円345円215円225円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円345円244円204円347円220円206円347円250円213円345円272円217円345円256円236円347円216円260円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円256円200円345円215円225円347円232円204円345円255円246円347円224円237円344円277円241円346円201円257円345円244円204円347円220円206円347円250円213円345円272円217円345円256円236円347円216円260円.cpp" @@ -1,30 +1,30 @@ /* -酒汽議僥伏佚連侃尖殻會糞孖 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膊???????絖???篆≧???????腮?綺鎘??ー +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -壓匯倖僥伏佚連侃尖殻會嶄?勣箔糞孖匯倖旗燕僥伏議窃?旺拝侭嗤撹埀延楚脅哘乎頁暴嗤議。 +??颷? +???筝?筝?6???篆≧???????腮?綺鋇昭和??荀?羆?絎??ー筝?筝ŭ撮茵?絖??????膠誌??綛銀??????????????????????遵??莚ユ?夌??????????? -?廣?得霞狼由涙隈徭強登僅延楚頁倦暴嗤。厘断氏壓潤崩岻朔由匯斤恬匍序佩殊臥?萩揖僥断冢鯉梓孚籾朕勣箔頼撹?倦夸辛嬬氏唹峒恬匍撹示。? +鐚?羈Ǎ??莚?羌?膤紫?????羈????????ゆ?上?????????????????????篁コ??????????箙????膸?筝?絲剛??筝?菴?茵?罍???ワ??莚桁??絖?錆筝ユ?惹????ч????勤??羆?絎????鐚???????櫝?巡??綵怨??篏?筝????膸í??鐚? -補秘 -侖兆?定槍?僥催?及匯僥定峠譲撹示?及屈僥定峠譲撹示?及眉僥定峠譲撹示?及膨僥定峠譲撹示。 +莨???? +紮????鐚?綛顔??鐚?絖?埦??膃コ??絖?拘綛喝?????膸ú??膃コ??絖?拘綛喝?????膸ú??膃コ??絖?拘綛喝?????膸ú??膃サ??絖?拘綛喝?????膸í?? -凪嶄侖兆、僥催葎忖憲堪?音根腎鯉才矯催?定槍葎屎屁方?撹示葎掲減屁方。 +??銀賢紮???????絖?垬減絖?膃?顕鐚?筝????Ã??弱??????埦??綛顔??筝堺3??贋?逸?????膸î減???茣???贋?違?? -光何蛍坪否岻寂譲喘汽倖哂猟矯催","侯蝕?涙謹噫腎鯉。 +????????????絎剛????翫????????筝??掩????????","???綣?鐚????紊?篏?腥堺?若?? -補竃 -匯佩?梓乏會補竃?侖兆?定槍?僥催?膨定峠譲撹示??和函屁?。 +莨???? +筝?茵?鐚????蕁阪?颴???削??紮????鐚?綛顔??鐚?絖?埦?????綛翫抗??????膸ú?????筝??????器????? -光何蛍坪否岻寂譲喘汽倖哂猟矯催","侯蝕?涙謹噫腎鯉。 +????????????絎剛????翫????????筝??掩????????","???綣?鐚????紊?篏?腥堺?若?? -劔箭補秘 +??隙??莨???? Tom,18,7817,80,80,90,70 -劔箭補竃 +??隙??莨???? Tom,18,7817,80 */ diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2721円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2721円.cpp" index a8c74ed..bc85c0c 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2721円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2721円.cpp" @@ -1,21 +1,21 @@ /* -園殻籾?1 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂?鐚?1 +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -和中殻會補竃議潤惚頁? +??颷? +筝???∝??綺颴???榊??膸??????姒?? 0 5 -萩野腎? +莚桁 ?腥削?? #include using namespace std; class A { public: int val; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? }; main() { A a; @@ -24,15 +24,15 @@ main() { cout << a.val << endl; } -劔箭補秘 -涙 +??隙??莨???? +??? -劔箭補竃 +??隙??莨???? 0 5 -戻幣 -侭髪旗鷹醤嗤泌和侘塀? +???腓? +???膽坂撮?????傑??絋?筝?綵√??? A(_________________ ){ val = n; } ________________ GetObj() { return _________________; diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2722円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2722円.cpp" index 372d479..121279e 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2722円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2722円.cpp" @@ -1,21 +1,21 @@ /* -園殻籾 ?2 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂? 鐚?2 +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -和中殻會議補竃頁? +??颷? +筝???∝??綺????莨???堺?姒?? 10 -萩温怎Sample窃議撹埀痕方。音嬬奐紗撹埀延楚。 +莚決.莇?Sample膠紫??????????醇?違??筝???遵???????????????????? #include using namespace std; class Sample{ public: int v; Sample(int n):v(n) { } -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? }; int main() { Sample a(5); @@ -24,10 +24,10 @@ int main() { return 0; } -劔箭補秘 -涙 +??隙??莨???? +??? -劔箭補竃 +??隙??莨???? 1 10 */ diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2723円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2723円.cpp" index 30f7b72..a96a577 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2723円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week3/347円274円226円347円250円213円347円273円203円344円271円240円/347円250円213円345円272円217円345円241円253円347円251円2723円.cpp" @@ -1,15 +1,15 @@ /* -園殻籾 ?3 -栖坿: POJ (Coursera蕗苧?壓POJ貧頼撹議楼籾繍音氏柴秘Coursera議恷朔撹示。) +膽?腮?蘂? 鐚?3 +??ユ??: POJ (Coursera紕井??鐚????POJ筝?絎???????箙?蘂?絨?筝?篌?莅≦??Coursera????????????膸í??) -廣吭? 悳扮寂尫崙: 1000ms 坪贋尫崙: 65536kB +羈????? ??紙?狗?顔?????: 1000ms ???絖???????: 65536kB -宙峰 -和中殻會議補竃潤惚頁? +??颷? +筝???∝??綺????莨???榊???????姒?? 5,5 5,5 -萩野腎? +莚桁 ?腥削?? #include using namespace std; class Base { @@ -20,7 +20,7 @@ class Base { class Big { public: int v; Base b; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? }; int main() { Big a1(5); Big a2 = a1; @@ -29,15 +29,15 @@ int main() { return 0; } -劔箭補秘 -涙 +??隙??莨???? +??? -劔箭補竃 +??隙??莨???? 5,5 5,5 -戻幣 -侭髪旗鷹醤嗤泌和侘塀? +???腓? +???膽坂撮?????傑??絋?筝?綵√??? Big ________________{ } Big ________________{ } diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week4/347円274円226円347円250円213円347円273円203円344円271円240円/345円244円247円346円225円264円346円225円260円347円232円204円345円212円240円345円207円217円344円271円230円351円231円244円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week4/347円274円226円347円250円213円347円273円203円344円271円240円/345円244円247円346円225円264円346円225円260円347円232円204円345円212円240円345円207円217円344円271円230円351円231円244円.cpp" index b1aed6c..18c5020 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week4/347円274円226円347円250円213円347円273円203円344円271円240円/345円244円247円346円225円264円346円225円260円347円232円204円345円212円240円345円207円217円344円271円230円351円231円244円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week4/347円274円226円347円250円213円347円273円203円344円271円240円/345円244円247円346円225円264円346円225円260円347円232円204円345円212円240円345円207円217円344円271円230円351円231円244円.cpp" @@ -6,15 +6,15 @@ using namespace std; class BigInt { private: - string num; // 方峙 - char sign; // 屎減 + string num; // ??医?? + char sign; // 罩h?? public: - BigInt(string n = "0"); // 更夛痕方?髪福葎0 - BigInt operator+(const BigInt &bi); // 寄屁方紗隈 - BigInt operator-(const BigInt &bi); // 寄屁方受隈 - BigInt operator*(const BigInt &bi); // 寄屁方核隈 - BigInt operator/(const BigInt &bi); // 寄屁方茅隈 - friend ostream& operator<<(ostream &o, const BigInt &b); // 寄屁方補竃 + BigInt(string n = "0"); // ????????醇?逸??膽榊??筝?0 + BigInt operator+(const BigInt &bi); // 紊ф?贋?医??羈? + BigInt operator-(const BigInt &bi); // 紊ф?贋?医?閿? + BigInt operator*(const BigInt &bi); // 紊ф?贋?遺??羈? + BigInt operator/(const BigInt &bi); // 紊ф?贋?育?ゆ?? + friend ostream& operator<<(ostream &o, const BigInt &b); // 紊ф?贋?域????? }; BigInt::BigInt(string n) diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week5/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円344円271円213円344円272円214円357円274円232円350円243円205円345円244円207円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week5/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円344円271円213円344円272円214円357円274円232円350円243円205円345円244円207円.cpp" index 6b0aaa0..5e7d4ce 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week5/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円344円271円213円344円272円214円357円274円232円350円243円205円345円244円207円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week5/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円344円271円213円344円272円214円357円274円232円350円243円205円345円244円207円.cpp" @@ -83,7 +83,7 @@ class Warrior class Dragon : public Warrior { private: - double morale; // 平賑 + double morale; // 紕?羂? public: Dragon(Headquarter *hq, int id, int strength, int atk, double m, int cid = 0) :Warrior(hq, id, strength, atk, cid), morale(m) { diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week6/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week6/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" index 5db3f73..5a82c42 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week6/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week6/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" @@ -1,24 +1,24 @@ /*********************************************** -徴舗弊順嶮自井 -頼撹扮寂?2017/12/31 -泊弊砂 +薛???巡?????膸??????? +絎??????狗?器??2017/12/31 +??延????? ***********************************************/ #include #include #include using namespace std; -//#pragma warning(disable:4996) // 猟周嶷協??visual studio 勣喘欺 +//#pragma warning(disable:4996) // ???篁狗??絎????鐚?visual studio 荀??????? /*********************************************** -畠蕉延楚? -碕徴嘱望綜何伏恢冷平議乏會?{ 2,3,4,1,0 } -清徴嘱望綜何伏恢冷平議乏會?{ 3,0,1,2,4 } -TOTALTIME?悳扮寂 -arrow_atk?広収議好似薦 -loyalty_loss?嶢穫業議鱒払 -initialLifeValue?望綜何議兜兵伏凋圷 -numOfCity?廓偏方楚 -GameOver?嗄老頁倦潤崩 +???絮???????? +膾∫??????夓擦?????篋ф6紕???蕁阪???{ 2,3,4,1,0 } +???薛?????夓擦?????篋ф6紕???蕁阪???{ 3,0,1,2,4 } +TOTALTIME鐚???紙?狗?? +arrow_atk鐚?綣?膊下????糸?糸?? +loyalty_loss鐚?綽?莚?綺??????紊? +initialLifeValue鐚??夓擦????????紮??????遵?? +numOfCity鐚????絽???育?? +GameOver鐚?羝御???????????? ***********************************************/ int redOrder[5] = { 2,3,4,1,0 }; int blueOrder[5] = { 3,0,1,2,4 }; @@ -29,7 +29,7 @@ int initialLifeValue, numOfCity; bool GameOver = false; /*********************************************** -扮寂窃 +??狗?雁瓜 ***********************************************/ class Time { @@ -54,15 +54,15 @@ class Time friend ostream& operator<<(ostream &o, const Time &t); }; -// 嗄老扮寂 +// 羝御????狗?? Time gameTime(0, 0); class Warrior; /*********************************************** -廓偏窃 -void printMove()?補竃卞強佚連 -void Fight()?麼勣頁侃尖40蛍扮窟伏議並周 +???絽?膠? +void printMove()鐚?莨???榊Щ???篆≧?? +void Fight()鐚?筝肢??????????40?????九????????篋?篁? ***********************************************/ class City { @@ -101,15 +101,15 @@ class City string get_flag() { return flag; } Warrior* get_red() { return redWarrior; } Warrior* get_blue() { return blueWarrior; } - virtual int get_numOfInvader() { return 0; } // 麼勣頁公望綜何聞喘 + virtual int get_numOfInvader() { return 0; } // 筝肢????夌???夓擦???篏睡?? }; /*********************************************** -望綜何窃 -Warrior *invader?喇噐曾兆黍繁序秘望綜何嘉麻嗄老潤崩?咀緩謹匯倖延楚invader栖贋慧枠序秘望綜何議黍繁 -void makeWarrior()?崙夛冷平 -void award()?襲潜覆旋議冷平伏凋圷 -void reportElements()?烏御輝念伏凋圷 +?夓擦???瓜 +Warrior *invader鐚???延??筝ゅ?????篋肴????ュ夓擦??????膊?羝御?靳????鐚????罩ゅ??筝?筝??????invader??ュ????上??菴???ュ夓擦????????篋? +void makeWarrior()鐚???狗??罩?? +void award()鐚?絅???沿????ñ??罩???????遵?? +void reportElements()鐚???ュ??綵?????????遵?? ***********************************************/ class Headquarter :public City { @@ -151,7 +151,7 @@ class Headquarter :public City { cout << gameTime << " " << LifeValue << " elements in " << alliance << " headquarter" << endl; } - // 資函撹埀延楚議痕方 + // ?キ????????????????????醇?? string get_alliance() { return alliance; } int get_LifeValue() { return LifeValue; } int get_numOfWarrior() { return numOfWarrior; } @@ -160,7 +160,7 @@ class Headquarter :public City Headquarter red("red"), blue("blue"); /*********************************************** -冷平窃 +罩??膠? ***********************************************/ class Warrior { @@ -172,15 +172,15 @@ class Warrior int attack; int weapon[3] = { 0 }; const string weaponName[3] = { "sword","bomb","arrow" }; - string classes; // 冷平嶽窃?"dragon","ninja","iceman","lion","wolf" - int classesID; // 冷平嶽窃園催?0? 1? 2? 3? 4? 5 + string classes; // 罩??腱?膠誌??"dragon","ninja","iceman","lion","wolf" + int classesID; // 罩??腱?膠紫???埦??0鐚? 1鐚? 2鐚? 3鐚? 4鐚? 5 friend Headquarter; friend ostream& operator<<(ostream &o, const Warrior *w); public: bool win; - static string warriorClasses[5]; // 侭嗤冷平嶽窃 - static int initialStrength[5]; // 兜兵伏凋 - static int initialAttack[5]; // 兜兵好似薦 + static string warriorClasses[5]; // ??????罩??腱?膠? + static int initialStrength[5]; // ???紮??????? + static int initialAttack[5]; // ???紮???糸?糸?? Warrior() {} Warrior(Headquarter *hq, int id, int s, int atk, int cid) :hq(hq), id(id), strength(s), attack(atk), classesID(cid), win(false) { @@ -240,7 +240,7 @@ void Warrior::Attack(Warrior *enemy) void Warrior::FightBack(Warrior *enemy) { - // ninja音郡似 + // ninja筝??????? if (strength != 0 && classes != "ninja") { cout << gameTime << " " << this << " fought back against " << enemy << " in city " << pCity->get_id() << endl; @@ -253,12 +253,12 @@ void Warrior::putArrow(Warrior *enemy) { if (weapon[2]> 0 && enemy != NULL) { - // 音嬬符望綜何戦議冷平 + // 筝???遵???夓擦????????罩?? if (enemy->pCity->id == 0 || enemy->pCity->id == numOfCity + 1) { return; } - enemy->Hurt(NULL, arrow_atk); // 瓜符似涙隈郡似?侭參勧弓NULL峺寞 + enemy->Hurt(NULL, arrow_atk); // 茴?絨???紙??羈??????誌?????篁ヤ?????NULL?????? weapon[2]--; if (enemy->strength == 0) { @@ -282,10 +282,10 @@ void Warrior::bomb(Warrior *enemy) bool redFirst = pCity->get_flag() == "red" || (pCity->get_flag() == "None" && pCity->id % 2 == 1); if (redFirst && hq->alliance == "red" || !redFirst && hq->alliance == "blue") { - // 厘圭枠竃似?瓜郡姫 + // ?????劫????阪?誌??茴??????? if (enemy->classes != "ninja" && attack + weapon[0] < enemy->strength && strength <= enemy->attack / 2 + enemy->weapon[0]) { - // 哈卯姆起 + // 綣??????後執 strength = 0; enemy->strength = 0; pCity->redWarrior = NULL; @@ -295,7 +295,7 @@ void Warrior::bomb(Warrior *enemy) } else if (strength <= enemy->attack + enemy->weapon[0]) { - // 黍圭枠竃似?氏瓜姫棒 + // ?????劫????阪?誌??篌?茴????罩? strength = 0; enemy->strength = 0; pCity->redWarrior = NULL; @@ -313,7 +313,7 @@ void Warrior::Hurt(Warrior *enemy, int atk) strength = 0; if (enemy != NULL) { - // enemy != NULL 傍苧頁窟伏阻媾尸遇音頁瓜符棒 + // enemy != NULL 莚贋??????????篋????篋????筝???虁←絨?罩? enemy->win = true; cout << gameTime << " " << this << " was killed in city " << pCity->get_id() << endl; } @@ -322,7 +322,7 @@ void Warrior::Hurt(Warrior *enemy, int atk) void Warrior::move() { - // 碕冷平徭廉?叫卞強 + // 膾∽6紕???タ???筝?腱糸?? if (hq->alliance == "red") { if (pCity->id == numOfCity + 1) @@ -341,7 +341,7 @@ void Warrior::move() } else { - // 清冷平徭叫?廉卞強 + // ???罩????ŭ?????茱睡Щ??? if (pCity->id == 0) { pCity->blueWarrior = NULL; @@ -359,7 +359,7 @@ void Warrior::move() } -//資函廓偏伏凋圷公悳何 +//?キ??????絽??????遵??膸???脂?? void Warrior::earn_elements() { cout << gameTime << " " << this << " earned " << pCity->LifeValue << " elements for his headquarter" << endl; @@ -367,7 +367,7 @@ void Warrior::earn_elements() pCity->LifeValue = 0; } -// 烏御冷匂 +// ??ュ??罩??? void Warrior::ReportWeapon() { int num_weapon = (weapon[0] != 0) + (weapon[1] != 0) + (weapon[2] != 0); @@ -405,12 +405,12 @@ void Warrior::ReportWeapon() } /*********************************************** -冷平塗伏窃?Dragon窃 +罩??羇丞??膠誌??Dragon膠? ***********************************************/ class Dragon : public Warrior { private: - double morale; // 平賑 + double morale; // 紕?羂? public: Dragon(Headquarter *hq, int id, int strength, int atk, double m, int cid = 0) :Warrior(hq, id, strength, atk, cid), morale(m) { @@ -424,7 +424,7 @@ class Dragon : public Warrior } void yell() { - // 登僅頁倦麼強好似 + // ??ゆ?中????源?????糸?? bool active_attack = (hq->get_alliance() == "red" && (pCity->get_flag() == "red" || (pCity->get_flag() == "None" && pCity->get_id() % 2 == 1))) || (hq->get_alliance() == "blue" && (pCity->get_flag() == "blue" || (pCity->get_flag() == "None" && pCity->get_id() % 2 == 0))); if (morale> 0.8 && strength> 0 && active_attack) @@ -441,7 +441,7 @@ class Dragon : public Warrior }; /*********************************************** -冷平塗伏窃?Ninja窃 +罩??羇丞??膠誌??Ninja膠? ***********************************************/ class Ninja : public Warrior { @@ -454,12 +454,12 @@ class Ninja : public Warrior }; /*********************************************** -冷平塗伏窃?Iceman窃 +罩??羇丞??膠誌??Iceman膠? ***********************************************/ class Iceman : public Warrior { private: - int moveStep; // 卞強化方 + int moveStep; // 腱糸??罩ユ?? public: Iceman(Headquarter *hq, int id, int strength, int atk, int cid = 2) : Warrior(hq, id, strength, atk, cid) { @@ -479,8 +479,8 @@ class Iceman : public Warrior }; /*********************************************** -冷平窃塗伏窃?Lion窃 -蒙來?嗤嶢穫業?氏毛怒 +罩??膠紙款???膠誌??Lion膠? +??号?э?????綽?莚?綺???篌????莊? ***********************************************/ class Lion : public Warrior { @@ -537,7 +537,7 @@ void Lion::Hurt(Warrior *enemy, int atk) static int tmpStrength; tmpStrength = strength; Warrior::Hurt(enemy, atk); - // 瓜符棒音廬卞伏凋 + // 茴?絨?罩私??莉スЩ?????? if (enemy == NULL) { return; @@ -549,8 +549,8 @@ void Lion::Hurt(Warrior *enemy, int atk) } /*********************************************** -冷平窃塗伏窃?Wolf窃 -蒙泣?辛參宿資黍繁議冷匂 +罩??膠紙款???膠誌??Wolf膠? +??合?刻???櫆札膽頑キ???篋榊??罩??? ***********************************************/ class Wolf :public Warrior { @@ -570,7 +570,7 @@ class Wolf :public Warrior void Headquarter::makeWarrior() { - // 資函輝念伏恢冷平議嶽窃園催?薦楚峙?好似峙 + // ?キ???綵???????篋ф6紕???腱?膠紫???埦??????????種????糸?糸?? int classID = ProduceOrder[numOfWarrior % 5]; int strength = Warrior::initialStrength[classID]; int atk = Warrior::initialAttack[classID]; @@ -628,7 +628,7 @@ void Headquarter::award(Warrior *w) void City::printMove() { - // 清冷平秘盃碕望綜何 + // ???罩????ヤ承膾√夓擦??? if (id == 0 && blueWarrior) { cout << gameTime << " " << blueWarrior << " reached red headquarter with " << blueWarrior->get_strength() << " elements and force " << blueWarrior->get_attack() << endl; @@ -638,7 +638,7 @@ void City::printMove() GameOver = true; } } - // 碕冷平秘盃清望綜何 + // 膾∽6紕???ヤ承????夓擦??? else if (id == numOfCity + 1 && redWarrior) { cout << gameTime << " " << redWarrior << " reached blue headquarter with " << redWarrior->get_strength() << " elements and force " << redWarrior->get_attack() << endl; @@ -663,7 +663,7 @@ void City::printMove() void City::Fight() { - // 峪嗤匯倖冷平拝瓜符棒?短嗤窟伏媾況 + // ?Ŭ??筝?筝?6紕???茴?絨?罩誌??羃≧?????????????? if (!redWarrior && blueWarrior && blueWarrior->get_strength() == 0) { blueWarrior = NULL; @@ -672,17 +672,17 @@ void City::Fight() { redWarrior = NULL; } - // 碕清冷平脅壓?篇葎窟伏阻匯魁媾況 + // 膾∵??罩????遵?Ǎ??茹?筝阪?????篋?筝???堺????? if (redWarrior && blueWarrior) { - // 脅瓜符棒 + // ??処←絨?罩? if (redWarrior->get_strength() == 0 && blueWarrior->get_strength() == 0) { blueWarrior = NULL; redWarrior = NULL; return; } - // 匯圭瓜符棒 + // 筝???壕←絨?罩? else if (redWarrior->get_strength() == 0 && blueWarrior->get_strength()> 0) { blueWarrior->win = true; @@ -693,7 +693,7 @@ void City::Fight() redWarrior->win = true; redWarrior->yell(); } - // 登僅麼強好似圭?窟伏媾況 + // ??ゆ?TEL源?????糸?紙?刻?????????????? else { if (flag == "red" || (flag == "None" && id % 2 == 1)) @@ -708,8 +708,8 @@ void City::Fight() if (redWarrior->win) { redWarrior->earn_elements(); - redWarrior->disarm(blueWarrior); // Wolf宿亠 - if (lastWinner == "red" && flag != "red") // 銭覆曾肝 + redWarrior->disarm(blueWarrior); // Wolf膽贋" + if (lastWinner == "red" && flag != "red") // 菴????筝ゆ? { set_flag("red"); } @@ -735,8 +735,8 @@ void City::Fight() } /*********************************************** -補竃塰麻憲嶷墮 -補竃冷平佚連才扮寂 +莨???肴??膊?膃???莉? +莨???堺6紕?拭???????狗?? ***********************************************/ ostream& operator<<(ostream &o, const Warrior *w) { @@ -751,11 +751,11 @@ ostream& operator<<(ostream &o, const Time &t) } /*********************************************** -麼痕方??? +筝糸?醇?逸??鐚?鐚? ***********************************************/ int main() { - // 猟周嶷協? + // ???篁狗??絎???? //freopen("in.txt", "r", stdin); //freopen("out.txt", "w", stdout); int numOfTest = 0; @@ -763,11 +763,11 @@ int main() for (int i = 1; i <= numOfTest; i++) { - // 嶷崔畠蕉延楚 + // ???臀???絮??????? gameTime.init(0, 0); GameOver = false; - // 補秘方象 + // 莨???ユ?井?? cin>> initialLifeValue>> numOfCity>> arrow_atk>> loyalty_loss>> TOTALTIME; for (int j = 0; j < 5; j++) { @@ -778,8 +778,8 @@ int main() cin>> Warrior::initialAttack[j]; } - // 悳何才廓偏兜兵晒 - City* city[22]; // 葎阻斑廓偏方怏淫根悳何?蕗苧葎峺寞 + // ??脂????????絽????紮???? + City* city[22]; // 筝坂??莅ï??絽???亥??????????脂?Ǎ??紕井??筝堺????? for (int j = 1; j <= numOfCity; j++) { city[j] = new City; @@ -792,11 +792,11 @@ int main() } city[0]->init(0, NULL, city[1]); city[numOfCity + 1]->init(numOfCity + 1, city[numOfCity], NULL); - // 匯協勣枠距喘City議init壓距喘Headquarter議init + // 筝?絎?荀????莪????City???init????????Headquarter???init red.init(initialLifeValue, redOrder); blue.init(initialLifeValue, blueOrder); - // 霞編蝕兵 + // 羌?莚?綣?紮? cout << "Case " << i << ":" << endl; while (true) { @@ -805,7 +805,7 @@ int main() red.makeWarrior(); blue.makeWarrior(); } - if (gameTime.minute == 5) // 沸徨毛怒 + if (gameTime.minute == 5) // ????????莊? { for (int j = 0; j <= numOfCity + 1; j++) { @@ -820,9 +820,9 @@ int main() } } } - if (gameTime.minute == 10) // 冷平卞強 + if (gameTime.minute == 10) // 罩??腱糸?? { - // 葎阻契峭卞強夛撹和匯倖廓偏佚連鱒払?才卞強圭?屢郡距喘move() + // 筝坂????我2腱糸???????筝?筝?筝???絽?篆≧?壩??紊縁?????腱糸????劫????後??莪????move() for (int j = numOfCity + 1; j>= 0; j--) { if (city[j]->get_red()) @@ -846,14 +846,14 @@ int main() break; } } - if (gameTime.minute == 20) // 廓偏恢伏伏凋圷 + if (gameTime.minute == 20) // ???絽?篋х???????遵?? { for (int j = 1; j <= numOfCity; j++) { city[j]->produceLifeValue(); } } - if (gameTime.minute == 30) // 峪嗤匯倖冷平扮岷俊函恠伏凋圷 + if (gameTime.minute == 30) // ?Ŭ??筝?筝?6紕???句?贋・???莎亥????遵?? { for (int j = 1; j <= numOfCity; j++) { @@ -867,7 +867,7 @@ int main() } } } - if (gameTime.minute == 35) // 慧収 + if (gameTime.minute == 35) // ??丞你 { for (int j = 1; j <= numOfCity; j++) { @@ -883,7 +883,7 @@ int main() } } } - if (gameTime.minute == 38) // 慧姆起 + if (gameTime.minute == 38) // ??丞?後執 { for (int j = 1; j <= numOfCity; j++) { @@ -897,24 +897,24 @@ int main() } } } - if (gameTime.minute == 40) // 媾況 + if (gameTime.minute == 40) // ?????? { for (int j = 1; j <= numOfCity; j++) { city[j]->Fight(); } - for (int j = 1; j <= numOfCity; j++) // 單枠襲潜鉦宣除議 + for (int j = 1; j <= numOfCity; j++) // 篌????絅???沿??胼肢????? { red.award(city[j]->redWarrior); blue.award(city[numOfCity - j + 1]->blueWarrior); } } - if (gameTime.minute == 50) // 望綜何烏御伏凋峙 + if (gameTime.minute == 50) // ?夓擦?????ュ???????遵?? { red.reportElements(); blue.reportElements(); } - if (gameTime.minute == 55) // 冷平烏御冷匂 + if (gameTime.minute == 55) // 罩????ュ??罩??? { for (int j = 0; j <= numOfCity + 1; j++) { @@ -923,7 +923,7 @@ int main() city[j]->get_red()->ReportWeapon(); } } - if (blue.invader) // 秘盃欺悳何議冷平匆勣烏御 + if (blue.invader) // ??ヤ承??井?脂????罩??箙?荀???ュ?? { blue.invader->ReportWeapon(); } diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week7/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week7/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" index 05a8cd4..023098a 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week7/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week7/347円274円226円347円250円213円347円273円203円344円271円240円/351円255円224円345円205円275円344円270円226円347円225円214円347円273円210円346円236円201円347円211円210円.cpp" @@ -37,7 +37,7 @@ class City { protected: int id; - string flag; // 0?涙縄崢?1?碕縄?2?清縄 + string flag; // 0鐚???????絽?鐚?1鐚?膾∽??鐚?2鐚??????? int LifeValue; City *next; City *prior; @@ -253,10 +253,10 @@ void Warrior::bomb(Warrior *enemy) bool redFirst = pCity->get_flag() == "red" || (pCity->get_flag() == "None" && pCity->id % 2 == 1); if (redFirst && hq->alliance == "red" || !redFirst && hq->alliance == "blue") { - // 厘圭枠竃似?瓜郡姫 + // ?????劫????阪?誌??茴??????? if (enemy->getClasses() != "ninja" && attack + weapon[0] < enemy->strength && strength <= enemy->attack / 2 + enemy->weapon[0]) { - // 哈卯姆起 + // 綣??????後執 strength = 0; enemy->strength = 0; pCity->redWarrior = NULL; @@ -267,7 +267,7 @@ void Warrior::bomb(Warrior *enemy) } else if (strength <= enemy->attack + enemy->weapon[0]) { - // 哈卯姆起 + // 綣??????後執 strength = 0; enemy->strength = 0; pCity->redWarrior = NULL; @@ -379,7 +379,7 @@ void Warrior::ReportWeapon() class Dragon : public Warrior { private: - double morale; // 平賑 + double morale; // 紕?羂? public: Dragon(Headquarter *hq, int id, int strength, int atk, double m, int cid = 0) :Warrior(hq, id, strength, atk, cid), morale(m) { @@ -624,12 +624,12 @@ void Headquarter::award(Warrior *w) void City::Fight() { - // 清冷平瓜符棒 + // ???罩??茴?絨?罩? if (!redWarrior && blueWarrior && blueWarrior->getStrength() == 0) { blueWarrior = NULL; } - // 碕冷平瓜符棒 + // 膾∽6紕?←絨?罩? if (redWarrior && !blueWarrior && redWarrior->getStrength() == 0) { redWarrior = NULL; @@ -712,7 +712,7 @@ int main() blueWin = false; redWin = false; - // 補秘方象 + // 莨???ユ?井?? cin>> initialLifeValue>> numOfCity>> arrow_atk>> loyalty_loss>> TOTALTIME; for (int j = 0; j < 5; j++) @@ -724,7 +724,7 @@ int main() cin>> initialAttack[j]; } - // 悳何才廓偏兜兵晒 + // ??脂????????絽????紮???? City* city[22]; for (int j = 1; j <= numOfCity; j++) @@ -743,7 +743,7 @@ int main() blue.init(initialLifeValue, blueOrder); - // 霞編蝕兵 + // 羌?莚?綣?紮? cout << "Case " << i << ":" << endl; while (true) { diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/istream_iterator.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/istream_iterator.cpp" index bd9339c..d89f2c9 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/istream_iterator.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/istream_iterator.cpp" @@ -2,7 +2,7 @@ #include using namespace std; -// 壓緩侃温割低議旗鷹 +// ???罩ゅ??茵ュ??篏????篁g?? template class CMyistream_iterator { @@ -28,13 +28,13 @@ int main() { CMyistream_iterator inputInt(cin); int n1, n2, n3; - n1 = *inputInt; //響秘 n1 + n1 = *inputInt; //莚糸?? n1 int tmp = *inputInt; cout << tmp << endl; inputInt++; - n2 = *inputInt; //響秘 n2 + n2 = *inputInt; //莚糸?? n2 inputInt++; - n3 = *inputInt; //響秘 n3 + n3 = *inputInt; //莚糸?? n3 cout << n1 << "," << n2 << "," << n3 << endl; CMyistream_iterator inputStr(cin); string s1, s2; diff --git "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/346円240円207円345円207円206円347円237円251円345円275円242円.cpp" "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/346円240円207円345円207円206円347円237円251円345円275円242円.cpp" index 3700d0a..e41f325 100644 --- "a/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/346円240円207円345円207円206円347円237円251円345円275円242円.cpp" +++ "b/3.C++347円250円213円345円272円217円350円256円276円350円256円241円/week9/347円274円226円347円250円213円347円273円203円344円271円240円/346円240円207円345円207円206円347円237円251円345円275円242円.cpp" @@ -33,7 +33,7 @@ int main() } vector::iterator i, j; int nTotalNum = 0; - // 壓緩侃温割低議旗鷹 + // ???罩ゅ??茵ュ??篏????篁g?? sort(v.begin(), v.end()); for (i = v.begin(); i < v.end() - 1; i++) { diff --git "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/tmp.cpp" "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/tmp.cpp" index 84fe826..39184f8 100644 --- "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/tmp.cpp" +++ "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/tmp.cpp" @@ -19,7 +19,7 @@ int Count() return sum; } -// 兜兵晒方怏才侃尖補秘 +// ???紮??????亥?????紊????莨???? void init() { for (int i = 0; i < 17; i++) @@ -50,7 +50,7 @@ void init() } } -// 刮屬基宛頁倦屎鳩?麼勣刮屬恷朔匯佩 +// 薨?莚?膈?罅??????3隋卡??筝肢??薨?莚???????筝?茵? bool guess() { for (int j = 1; j <= width; j++) @@ -61,7 +61,7 @@ bool guess() return true; } -// 功象及匯佩議旦訟厚仟複噫叱佩 +// ??号?勛?筝?茵???????筝丈?贋?医?î?????茵? void update() { for (int i = 1; i < width; i++) @@ -73,10 +73,10 @@ void update() } } -// 旦訟及匯佩議侭嗤秤趨?岷欺誼竃基宛 +// ???筝丞?筝?茵???????????????居????翫?医????榊??罅? void enumerate() { - // 兜兵秤趨 + // ???紮??????? update(); for (int i = 0; i < pow(2, width); i++) @@ -91,7 +91,7 @@ void enumerate() } paint[1][1]++; int k = 1; - while (paint[1][k]> 1) // 序了 + while (paint[1][k]> 1) // 菴?篏? { paint[1][k] = 0; paint[1][++k]++; @@ -103,7 +103,7 @@ void enumerate() int main() { cin>> width; - minCount = 226; // 恷寄15*15 = 225 + minCount = 226; // ???紊?15*15 = 225 init(); enumerate(); diff --git "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/346円213円250円351円222円237円351円227円256円351円242円230円.cpp" "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/346円213円250円351円222円237円351円227円256円351円242円230円.cpp" index cfd1d42..02b93ef 100644 --- "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/346円213円250円351円222円237円351円227円256円351円242円230円.cpp" +++ "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/346円213円250円351円222円237円351円227円256円351円242円230円.cpp" @@ -19,7 +19,7 @@ int tic[10] = { 0 }; int minStep = 1000000; int minTic[10] = { 0 }; -// 功象 tic[1] tic[2] tic[3] 厚仟凪噫峙 +// ??号?? tic[1] tic[2] tic[3] ??贋?医?銀????? void update() { tic[4] = (4 - (Clock[1] + tic[1] + tic[2]) % 4) % 4; diff --git "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円224円273円345円256円266円351円227円256円351円242円230円.cpp" "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円224円273円345円256円266円351円227円256円351円242円230円.cpp" index ba52e8d..3226b72 100644 --- "a/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円224円273円345円256円266円351円227円256円351円242円230円.cpp" +++ "b/4.347円256円227円346円263円225円345円237円272円347円241円200円/week2/347円274円226円347円250円213円347円273円203円344円271円240円/347円224円273円345円256円266円351円227円256円351円242円230円.cpp" @@ -19,7 +19,7 @@ int Count() return sum; } -// 兜兵晒方怏才侃尖補秘 +// ???紮??????亥?????紊????莨???? void init() { for (int i = 0; i < 17; i++) @@ -50,7 +50,7 @@ void init() } } -// 刮屬基宛頁倦屎鳩?麼勣刮屬恷朔匯佩 +// 薨?莚?膈?罅??????3隋卡??筝肢??薨?莚???????筝?茵? bool guess() { for (int j = 1; j <= width; j++) @@ -61,7 +61,7 @@ bool guess() return true; } -// 功象及匯佩議旦訟厚仟複噫叱佩 +// ??号?勛?筝?茵???????筝丈?贋?医?î?????茵? void update() { for (int i = 1; i < width; i++) @@ -73,10 +73,10 @@ void update() } } -// 旦訟及匯佩議侭嗤秤趨?岷欺誼竃基宛 +// ???筝丞?筝?茵???????????????居????翫?医????榊??罅? void enumerate() { - // 兜兵秤趨 + // ???紮??????? update(); for (int i = 0; i < pow(2, width); i++) @@ -91,7 +91,7 @@ void enumerate() } paint[1][1]++; int k = 1; - while (paint[1][k]> 1) // 序了 + while (paint[1][k]> 1) // 菴?篏? { paint[1][k] = 0; paint[1][++k]++; @@ -108,7 +108,7 @@ int main() for (int i = 0; i < ncase; i++) { cin>> width; - minCount = 226; // 恷寄15*15 = 225 + minCount = 226; // ???紊?15*15 = 225 init(); enumerate(); diff --git "a/5.346円225円260円346円215円256円347円273円223円346円236円204円345円237円272円347円241円200円/week4/350円213円261円350円257円255円346円225円260円345円255円227円350円275円254円346円215円242円345円231円250円.cpp" "b/5.346円225円260円346円215円256円347円273円223円346円236円204円345円237円272円347円241円200円/week4/350円213円261円350円257円255円346円225円260円345円255円227円350円275円254円346円215円242円345円231円250円.cpp" index 3c4d385..ae4b0c5 100644 --- "a/5.346円225円260円346円215円256円347円273円223円346円236円204円345円237円272円347円241円200円/week4/350円213円261円350円257円255円346円225円260円345円255円227円350円275円254円346円215円242円345円231円250円.cpp" +++ "b/5.346円225円260円346円215円256円347円273円223円346円236円204円345円237円272円347円241円200円/week4/350円213円261円350円257円255円346円225円260円345円255円227円350円275円254円346円215円242円345円231円250円.cpp" @@ -17,7 +17,7 @@ int main() string line; while (getline(cin, line) && line != "") { - line += ' '; // 佩挑紗腎鯉圭宴俳護 + line += ' '; // 茵???????腥堺?惹?剛梢?????? int pos; int sign = 1; int val = 0;

    AltStyle によって変換されたページ (->オリジナル) /