


版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、ttinclude <iostream> using namespace std;int main()int a, b;cin >> a >> b;cout << a+b << endl;return 0;0002ttinclude <cstdlib>ttinclude <iostream> using namespace std;int main()cout? , Hello World! /z; return EXIT_SUCCESS;0003ttinclude <cstdlib>ttinclu
2、de <iostream> using namespace std;int main (int argc, char *argv)cout<< * < endl; cout? / , * < endl;cout<< * <<endl; return EXIT_SUCCESS;0009ttinclude <iostream> using namespace std;int main()int a, b; cin >> a >> b; cout << a+b << endl;re
3、turn 0;0010ttinclude <iostream> using namespace std;int main()int a, b;cin >> a >> b;cout << ab << endl;return 0;0011#include<iostream> using namespace std; int main()long long a, b;long long m; cin>>a>>b;m 二 a*b;cout<<m;0012ttinclude <cstdlib
4、> ttinclude<iostream>using namespace std;int main (int argc, char *argv)int a, b;cin >> a >> b;cout << a + b << endl;/system( PAUSE );return 0;ttinclude <cstdlib>ttinclude <iostream> using namespace std; int main()long long int a, b;char c;cin >> a
5、>> c >> b; cout << a*b;return EXIT_SUCCESS;0016ttinclude <iostream> using namespace std; int main()int i, j=0, k;int a 6;cin>>k;while (k!=0)i=k%10; aj=i; j+ ; k=k/10;for (i=0;i<j;i+)cout<<ai; /system( PAUSE ); return 0;0015#include<cstdlib>ttinclude <i
6、ostream> using namespace std; int main (int argc, char *argv)int n;int h, m, s; cin>>n;h=n/3600; m=n%3600/60;s=n%60;z ,cout?h/10?h%10? : <m/10 ni%10 : <<s/10?s%10?endl; /system( PAUSE );return EXIT_SUCCESS;0017ttinclude <cstdlib> ttinclude <iostream>using namespace std;
7、int main (int argc, char *argv)int a; cin>>a; cout a*10;/system( PAUSE ); return EXIT_SUCCESS;0014ttinclude <cstdlib> ttinclude <iostream> using namespace std;int main (int argc, char *argv)int hl, fl, ml;int h2, f2, m2;char fh;cin >>hl>>fh>>fl>>fh>>ml
8、;/time 1cin ?h2?fh?f2?fh?m2;/time 2cout <<(3600*hl+60*f1+ml)-(3600*h2+60*f2+m2); return EXIT_SUCCESS;0020#include<cstring> using namespace std;int main (int argc, char *argv)char s 101;int i, 1;cin. getline (s, 101);l=strlen(s);for(i=0;i<=l-l;i+)switch (s i)(case'Z'i = , ;brea
9、k;case'O' : si='O'break; case , r :si='break;si='2' ;break;case's' :si=' 5" ;break; case'b' : scase'B' : si='8" ;break; case'q' :si='9" ;break; cout<<s<<endl;/system( PAUSE );return EXIT_SUCCESS;0008tt
10、include <stdio. h>int main() int m, n;scanf ( d%d, &m, &n);if (m % 2 = 1 && n % 2 = 1) printf ("second!n ); else printf ("first!n );return 0;using n amespace std;int main (int argc, char *argv)int a, b, c;cin> >a»b»c;if (a>b) if (a>c) cout<<
11、;a; else cout<<c; else if (b>c) cout<<b; else cout«c;system( PAUSE,); return EXIT_SUCCESS;0214ttinclude <iostream> ttinclude <stack> using namespace std; int n , t , k; char s13 , p13; bool b 25;int mai n()stack<char> c;ini , j;ti? n;ni? s ?p;尚(i = 0 ; i < n
12、;:i+r)c. push(si);bk+ = 0;while (pt 二二 c. topO)t+;c. pop ();bk+ = 1; if (c. empty () break;if (c. empty ()(cout << Yes. << endl;for (i = 0 ; i < k ; i+)if (bi = 0)cout << in << endl;elsecout << out << endl;elsecout << No. << endl;cout << "
13、;FINISH" << endl;/system( pause );return 0;0021ttinclude <iostream>ttinclude <stack>using namespace std;int main()int a, b;cin>>a>>b;if (b>a)cout<<b-a<<endl;elsecout<<a-b<<endl;return 0;0024ttinclude <cstdlib>ttinclude <iostream&
14、gt; using namespace std; int main()int a, b;cin>>a>>b; cout<<b/a+K<endl;return 0;0026CLSINPUT NX=N100Y=(N MOD 100)10Z=(N MOD 100) MOD 10IF X>Y THENSWAP X, YEND IFIF X>Z THENSWAP X, Z END IFIF Y>Z THENSWAP Y, ZEND IFPRINT LTRIM$(STR$(Z);PRINT LTRIM$(STR$(Y);PRINT LTRIM$(
15、STR$(X);END0022#include<iostream. h> int main ()long long int a; cin>>a;if (a%100!=0)if (a%4=0)cout? /z TRUE/z;elsecout<< FALSE ;else(if(a%400=0)cout? /z TRUE/z;elsecout<< FALSE ;/sysetem( PAUSE ); return 0;0027ttinclude <cstdlib> ttinclude <iostream>using namespa
16、ce std;int main(int argc, char *argv)int a, b, c; cin>>a>>b>>c; if(a<b) swap (a, b);if (a<c) swap (a, c);if (b<c) swap (b, c);if (a-b=l&&b-c=l) cout<< /z TRUEz <<endl; else cout <FALSE ;/system( PAUSE ); return EXIT SUCCESS;0217 #include<cstdio>
17、;#include<iostream> using namespace std; int main()long long v;scanf( I64d , &v); printf( I64d , v); if (v<=7959) printf( 0 );if (v>=7960) printf( 1 );if (v>=11200) printf (2 );if (v>=16700) printf( 3 );if (v>=115000) printf ( 4 );if (v>=2000000) printf ( 5 );return 0;002
18、8 ttinclude <cstdlib> ttinclude <iostream> using namespace std;int main(int argc, char *argv)long int y, m, d, a;char x;cin?y?x>>m?x?d;if(y%4=0&&y%100!=0 y%400=0) a=29; elsea=28;if(m>l) d=d+31;if(m>2) d=d+a;if(m>3)d=d+31;if(m>4)d=d+30;if(m>5)d=d+31; if(m>6
19、)d=d+30; if(m>7)d=d+31; if(m>8)d=d+31; if(m>9)d=d+30; if (m>10)d=d+31;if (m>ll)d=d+31; cout<<d<<endl; /system( PAUSE ); return EXIT_SUCCESS;0043ttinclude <cstdlib> ttinclude <iostream>using namespace std;int main (int argc, char *argv) char a100, m;int n, i;cin
20、>>n>>m;i=n;while (n>0)ai-n=m; ai-n+l='0' cout<<a<<endl; n;return EXIT_SUCCESS;ttinclude <cstdlib>ttinclude <iostream> using namespace std;int main (int argc, char *argv)int s, n, c; cin>>c;s=0;n=l;while (n<=c) s=s+(l+n)*n/2; n=n+l;cout<<s
21、;/system( PAUSE ); return EXIT_SUCCESS;0023#include<iostream>using namespace std;int main()int a 4, b4;int f=0;int i; for(i=l;i<=3;i+) cin>>ai;for(i=l;i<=3;i+)cin>>b i;for(i=l;i<=3;i+)(if(ai>bi) 大了大了大了,做個(gè)標(biāo)志,咱不用接著往下跑了 我走f=l ;break;elseif(ai<bi)/ 小了,做標(biāo)志,走人 f=-l;break;i
22、f(f=l) cout<< z'First /z <<endl;else if(f=-l)cout<< Second <<endl; elsecout<< Same< endl;/ system ( /Z PAUSE/Z ); return 0;0047ttinclude <cstdlib>ttinclude <iostream>ttinclude <iomanip>using namespace std;int main (int argc, char *argv)int a, b;
23、char k;cin >>a>>k>>b;if (k 二二 '/' &&b=0)(cout? zz ERR0R!zz;else if(k='+')(cout <<a+b<<endl;else if(k='-')(cout <<a-b<<endl;else if(k='*')cout <<a*b<<endl;else if (k= /')(if(a%b=0)(cout <<a/b<&l
24、t;endl;else(cout <<fixed <<showpoint<< setprecision(2);cout <<(a*l. 0)/b<<endl;return EXIT_SUCCESS:0039"n elude <cstdlib>"n elude <iostream>using namespace std;int main(int argc, char *argv)cout " 50700” endl;/system("PAUSE");return
25、EXIT_SUCCESS:0007#include<stdio. h>int main ()int a1616=0;int i, j, n, m;for(i=l;i<16;i+)for(j=l;j<=i:j+)if (j=l)ai j=i;else ai j=ai-l jT*ai j-1/(ai j-l-ai-l j-1);while(scanf( d%d, &n, &m)!=EOF)(printf (z,l/%dn zz, an m);return 0;0005#include<iostream>using namespace std;int main()int n, i, j, m,
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 設(shè)計(jì)退單協(xié)議書(shū)
- 質(zhì)量考核協(xié)議書(shū)
- 供電所師徒協(xié)議書(shū)
- 診所分解協(xié)議書(shū)
- 鄰居知情協(xié)議書(shū)
- 責(zé)任書(shū)和協(xié)議書(shū)
- 買(mǎi)房時(shí)只有協(xié)議書(shū)
- 重組婚前協(xié)議書(shū)
- 鄰居關(guān)系協(xié)議書(shū)
- 記者采訪(fǎng)協(xié)議書(shū)
- 2024年山東濟(jì)南先行投資有限責(zé)任公司招聘筆試參考題庫(kù)含答案解析
- 新生兒持續(xù)肺動(dòng)脈高壓的護(hù)理課件
- 故事繪本表演游戲-:狐貍和兔子
- 企業(yè)員工法律意識(shí)培訓(xùn)課件
- 家具維保服務(wù)投標(biāo)方案
- 交通事故自救、互救基本常識(shí)(新版)
- 樁頂?shù)叵盗簩?zhuān)項(xiàng)施工方案
- 電氣工程概論-肖登明
- 膠粘劑制造業(yè)行業(yè)營(yíng)銷(xiāo)方案
- 【江淮汽車(chē)公司財(cái)務(wù)現(xiàn)狀及其盈利能力問(wèn)題分析(10000字論文)】
- Sibelius使用教程教材說(shuō)明
評(píng)論
0/150
提交評(píng)論