Summiya14Fis14Samaa

2 Nishad my Vaii

Jul 19th, 2020 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. //uVa11547
  2. #include<stdio.h>
  3.  
  4. int main(){
  5.    
  6.     int t,n=0,i;
  7.     int value=0;
  8.     //freopen("output_UVA_11547.txt","w+",stdout);      //this is just a debugging tool for uDebug large inputs
  9.     scanf("%d",&t);
  10.     for(i=0; i<t; i++){
  11.         scanf("%d",&n);
  12.         //value = (((n%100 * 63%100*5%100)%100+(7492%100*5%100)%100)%100-(498 % 100))%100;
  13.         value = (((n*315)+36962)/10)%10;
  14.        
  15.         value *= value>0 ? 1: (-1);
  16.     /* eita diyeo kaaj kore kintu emni eita amar level e pore na tai use kori nai
  17.         value = n * 567;   
  18.         value /= 9;        
  19.         value += 7492;     
  20.         value *= 235;      
  21.         value /= 47;       
  22.         value -= 498;
  23.         value /= 10;       
  24.         value %= 10;
  25.     */
  26.         printf("%d\n",value);
  27.  
  28.     }
  29.     return 0;
  30. }
Add Comment
Please, Sign In to add comment