Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Spejmer
#include <iostream> #include <string.h> using namespace std; int main() { int posty=0; scanf("%d",&posty); char ludzie[111][22]; for(int i=0;i<posty;i++) { scanf("%s",ludzie[i]); } char nick[22]; scanf("%s",nick); int x=0; for(int i=0;i<posty;i++) { if(strcmp(nick,ludzie[i]) == 0) { x++; } } printf("%d",x); }
run
|
edit
|
history
|
help
0
Sorting sort function stl in c++
多态
ExceptionWhat
shell sort
Network UVa
Question 1
cvcvcvcvv
reverseKNode
Factorial Inv wip
PascalTriangle