Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* e157 */
- /* AC (5ms, 84KB) */
- #include <cstdio>
- using namespace std;
- int n, a, b, t, v, d;
- int main()
- {
- scanf("%d", &n);
- scanf("%d %d %d", &a, &b, &t);
- a = a * t << 1;
- while(n-- && scanf("%d %d", &v, &d))
- printf("%d\n", a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment