結果
問題 |
No.143 豆
|
ユーザー |
|
提出日時 | 2022-06-10 22:48:09 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 1,102 ms |
コンパイル使用メモリ | 31,616 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 06:41:21 |
合計ジャッジ時間 | 1,907 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 RE * 14 |
ソースコード
program main implicit none integer::k,n,f,a(100),x=0 ,i read*, k,n,f read*, a print *, k,n,f print *, a 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