#45660: 記得用long long


1121226@stu.wghs.tp.edu.tw (Arthur✨EC)


#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    while(n--){
        int f;
        cin>>f;
        long long ans=0;
        while(f--){
            long long n0,n1,n2;
            cin>>n0>>n1>>n2;
            ans+=n0*n2; 
        }
        cout<<ans<<endl;
    }
}
#45662: Re: 記得用long long


1121226@stu.wghs.tp.edu.tw (Arthur✨EC)


這題懶得打,答案其實是用抄的
QAQ

#46674: Re: 記得用long long


ck1090932@gl.ck.tp.edu.tw (陳邦仁)


這題懶得打,答案其實是用抄的
QAQ


其實開long就夠......

#53835: Re: 記得用long long


su2u4 (su2u4)


這題懶得打,答案其實是用抄的
QAQ


其實開long就夠......

明明要開到long long才夠

害我WA的其中一個答案是9999800001

明顯比2147483647大