結果
| 問題 | 
                            No.1198 お菓子配り-1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-09-27 01:32:06 | 
| 言語 | Fortran  (gFortran 14.2.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 463 bytes | 
| コンパイル時間 | 117 ms | 
| コンパイル使用メモリ | 30,720 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-30 02:32:48 | 
| 合計ジャッジ時間 | 769 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 9 WA * 5 | 
ソースコード
program main
    implicit none
    
    integer(16) :: n
    
    integer(16) :: i
    
    read *, n
    
    if (n < 3) then
        print '(A)', "-1"
        stop
    end if
    
    if (n == 4) then
        print '(A)', "1"
        stop
    end if
    
    if (mod(n, 2) == 1) then
        print '(A)', "1"
        stop
    end if
    
    if (mod(n, 4) == 0) then
        print '(A)', "-1"
        stop
    end if
    
    print '(A)', "-1"
end program main