This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int Tasks ; | |
int a[5] ; | |
cin >> Tasks ; | |
while (Tasks--){ | |
//input ------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**********************************************************************************/ | |
/* Problem: d881 "作業苦多" from CSDC */ | |
/* Language: CPP (334 Bytes) */ | |
/* Result: AC(4ms, 364KB) judge by this@ZeroJudge */ | |
/* Author: cthbst at 2012-02-05 20:04:16 */ | |
/**********************************************************************************/ | |
#include<iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int d ; | |
while (cin >> d){ | |
int sum=0 ,ai=1 ,delta = 1 ; | |
for (int i=1 ;i<=50 ;i++ ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int d ; | |
while (cin >> d){ | |
cout << 19600*d+1275 <<endl ; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<string> | |
using namespace std ; | |
int main(){ | |
string s ; | |
while (getline(cin,s)){ | |
for (int i=0 ;i<s.size() ;i++ ){ | |
s[i]+= '*'-'1' ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
const int maxn = 100 ; | |
int n ,m ; | |
int A[maxn][maxn] ; | |
while (cin >> n >> m ){ | |
for (int i=0 ;i<n ;i++ ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int y ; | |
cin >> y ; | |
cout << y-1911 <<endl ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int a ,b ; | |
while (cin >> a >> b ){ | |
int ans = 1 ; | |
for (int i=2 ;i<=a && i<=b ;i++ ){ | |
if (a%i==0 && b%i==0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int main(){ | |
int x ; | |
cin >>x ; | |
if (x==0){ | |
cout << 0 <<endl ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std ; | |
int gcd(int a ,int b ){ | |
if (b==0)return a ; | |
return gcd(b,a%b) ; | |
} | |
int main(){ | |
int a ,b ; |
OlderNewer