結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-11 11:19:00 |
| 言語 | Fortran (gFortran 16.1.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 1,000 ms |
| + 998µs | |
| コード長 | 282 bytes |
| 記録 | |
| コンパイル時間 | 1,583 ms |
| コンパイル使用メモリ | 40,740 KB |
| 実行使用メモリ | 9,796 KB |
| 最終ジャッジ日時 | 2026-09-01 21:18:40 |
| 合計ジャッジ時間 | 2,923 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
program main
implicit none
integer::k,n,f,a(100),x=0 ,i
read(*,*) k,n,f
read(*,*) a(1:f)
do i = 1,f
x = x + a(i)
end do
x = k* n - x
if(x>= 0) then
write(*,*) x
else if(x<0) then
write(*,*) "-1"
end if
stop
end program main