0
点赞
收藏
分享

微信扫一扫

瓜瓜喜欢做 A + B (思维

吃面多放酱 2022-03-19 阅读 60

添加链接描述

#include<bits/stdc++.h>
using namespace std;
const int N=5e3+9;
#define int long long
const int mod=1e9+7;
int mp[N][N];
signed main(){
    std::ios::sync_with_stdio(0);
    cin.tie(0),cout.tie(0);
    int n,m,k;
    cin>>n>>m>>k;
    int x,y,c;
    for(int i=1;i<=k;i++){
        
        cin>>x>>y>>c;
        
    }
    cout<<n+m-1<<" ";
    cout<<c<<"\n";
    return 0;
}
举报

相关推荐

0 条评论