Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by sf ( 13 years ago )
#include <iostream>
using namespace std;
#define HEAD 0
#define TAIL 1
int main(int argc, char const *argv[])
{
int t;
scanf("%d",&t);
while(t--){
int g;
scanf("%d",&g);
while(g--){
int i,n,q;
scanf("%d",&i);i--;
scanf("%d",&n);
scanf("%d",&q);q--;
printf("%d\n",n/2);
}
}
return 0;
}
Revise this Paste