結果

問題 No.146 試験監督(1)
ユーザー tenkyu9tenkyu9
提出日時 2018-03-09 01:00:10
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 659 ms
コンパイル使用メモリ 76,100 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-15 12:23:04
合計ジャッジ時間 1,805 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
using namespace std;
typedef long long int ll;

int main(){

  int n;
  cin >> n;
  ll ans=0;
  vector<ll> c(n), d(n);
  for(int i=0; i<n; i++){
    cin >> c[i] >> d[i];
    ans+=(c[i]/2+c[i]%2)*d[i];
  }
  cout << ans%(1000000000+7) << endl;
  
  return 0;
}
0