-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f76ee0
commit 6ece76f
Showing
18 changed files
with
133 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include<bits/stdc++.h> | ||
using namespace std; | ||
void file(){ | ||
freopen("input.txt","r",stdin); | ||
freopen("output.txt","w",stdout); | ||
} | ||
void run(){ | ||
int a[5][5],x,y,ans; | ||
for(int i=0;i<5;i++){ | ||
for(int j=0;j<5;j++){ | ||
cin >>a[i][j]; | ||
if(a[i][j]==1){ | ||
x=i; | ||
y=j; | ||
} | ||
} | ||
} | ||
ans = abs(2-x) + abs(2-y); | ||
cout << ans <<"\n"; | ||
} | ||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
file(); | ||
run(); | ||
return 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
//test | ||
|
||
|
||
#include<bits/stdc++.h> | ||
using namespace std; | ||
void file(){ | ||
freopen("input.txt","r",stdin); | ||
freopen("output.txt","w",stdout); | ||
} | ||
void run(){ | ||
|
||
string ss,ans=""; | ||
int length; | ||
|
||
while(getline(cin,ss)){ | ||
ans=""; | ||
length = ss.length(); | ||
//cout << length; | ||
for(int i=0;i<length;i++){ | ||
ans+=ss[i]-7; | ||
//printf("%c",ss[i]-7); | ||
} | ||
cout <<ans<< "\n"; | ||
} | ||
// HELLOW WORLD | ||
} | ||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
file(); | ||
run(); | ||
return 0; | ||
} | ||
// Hellow again | ||
|
31 changes: 31 additions & 0 deletions
31
media/chin/Hello1hello1/494_-_Kindergarten_Counting_Game.cpp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include<bits/stdc++.h> | ||
using namespace std; | ||
void file(){ | ||
freopen("input.txt","r",stdin); | ||
freopen("output.txt","w",stdout); | ||
} | ||
void run(){ | ||
string s; | ||
int ans=0,len; | ||
bool flag=false; | ||
while(getline(cin,s)){ | ||
ans=1; | ||
len=s.length(); | ||
for(int i=0;i<len;i++){ | ||
if(s[i]==32 && flag==true){ | ||
ans++; | ||
} | ||
} | ||
cout << ans <<"\n"; | ||
|
||
} | ||
|
||
} | ||
//HELLOW | ||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
file(); | ||
run(); | ||
return 0; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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
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