結果
問題 | No.146 試験監督(1) |
ユーザー | TLwiegehtt |
提出日時 | 2015-07-07 19:19:54 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 23,592 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-22 09:21:38 |
合計ジャッジ時間 | 1,189 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
ソースコード
#include <stdio.h> int main(void){ int i,n; long long int sum=0; scanf("%d", &n); for(i=0;i<n;i++){ long long int tmp; long long int c, d; scanf("%lld %lld", &c, &d); // c chair, d desk c = c%(1000000000+7); d = d%(1000000000+7); tmp = c/2; if( c%2 == 1){ tmp += 1; } tmp = (tmp*d)%(1000000000+7); sum = sum + tmp; sum = sum%(1000000000+7); } printf("%lld\n", sum); return 0; }