Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Kalkulator z bajerami
#include <iostream> #include <string.h> #include <cstdlib> using namespace std; int main() { int testy=0,x; char tab1[12]; char tab2[12]; scanf("%d",&testy); for(int i=0;i<testy;i++) { scanf("%s",tab1); if((tab1[0]<48)||(tab1[0]>57)) { scanf("%s",tab2); if((tab2[0]<48)||(tab2[0]>57)) { printf("%s%s\n", tab1, tab2); } else { int x = atoi(tab2); printf("%c\n", tab1[x-1]); } } else { int x = atoi(tab1); scanf("%s",tab2); if((tab2[0]<48)||(tab2[0]>57)) { printf("%c\n", tab2[x-1]); } else { printf("%d\n", atoi(tab1)+atoi(tab2)); } } } }
run
|
edit
|
history
|
help
0
Comp Conexe
dodawanie "MIECIERZY"
weird cast in qt moc files
aaaaaaaaaaaa
Find the row with max ones
void sun()
Template arguments pack
mine
mirrorpoint
Bitset Operators