题解:AT_joi2025_yo1b_a 徒競走 (Footrace)

· · 题解

atcoder 传送门

洛谷传送门

题意概括

给出速度和时间求距离。

解题思路

根据物理公式:距离 = 速度 \times 时间 可知输出的结果为 T \times V

代码实现

AC 记录

#include<bits/stdc++.h>
using namespace std;
int t,v;
int main(){
    ios::sync_with_stdio(0);    cin.tie(0); cout.tie(0);
    cin>>t>>v;
    cout<<t*v;
    return 0;
}