আমি এই সমস্যার সমাধান প্রায় ৬/৭ বার সাবমিট করার পর বার শুধু Compailation error দেখাচ্ছিল,কিছুই বুজতে পারলাম না আমি কোথায় ভুল করছি। পরে বুজতে পারলাম আমার কোডের শেষে // end while এই কমেন্ট ছিল।
যাই হোক, পরে comment ছাড়া সাবমিট করলাম একবারেই Accepted হল :D ।
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
/*------------------------------------------------*/ | |
//Problem Setter: Shahriar Manzoor | |
//Uva Problem No: 10071 | |
//Problem Name : Back To The High School Physics | |
//Author : Shohanur Rahaman | |
//University : City University | |
//E-mail : shohan4556@gmail.com | |
//N.B: While Submit the code erase all the coments above | |
/*-----------------------------------------------*/ | |
#include<stdio.h> | |
int main() | |
{ | |
int v,t; | |
while(scanf("%d %d",&v,&t)==2){ | |
if(v>=-100 && v<=100 && t>=0 & t<=200){ | |
printf("%d\n",2*v*t); | |
} | |
} | |
return 0; | |
} |