結果
| 問題 |
No.1198 お菓子配り-1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-27 01:13:09 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 31,616 KB |
| 実行使用メモリ | 13,760 KB |
| 最終ジャッジ日時 | 2024-06-30 01:54:58 |
| 合計ジャッジ時間 | 3,775 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 TLE * 1 -- * 5 |
ソースコード
program main
implicit none
integer(16) :: n
integer(16) :: i
read *, n
do i = 1, int(sqrt(real(n)), 16)
if (mod(n, i) == 0) then
if (mod(n / i - i, 2) == 0) then
print '(A)', "1"
stop
end if
end if
end do
print '(A)', "-1"
end program main