結果

問題 No.146 試験監督(1)
ユーザー mathshabmathshab
提出日時 2017-06-19 12:53:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,520 KB
最終ジャッジ日時 2024-04-10 06:03:10
合計ジャッジ時間 2,975 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#146 test
import math
N=int(input())
C=[[float(i) for i  in input(). split ()] for i in range(N)]
S=0
M=10*10
for i in range(7):
    M*=10
M+=7
for i in range(N):
    if C[i][0]/2!=math.floor(C[i][0]/2):
        C[i][0]+=1
    e=C[i][0]/2
    e=e*C[i][1]
    e=e-math.floor(e/M)
    S+=e
S=int(S)
S%=M
print (S)
0