結果

問題 No.3002 多項式の割り算 〜easy〜
ユーザー lotoka
提出日時 2025-01-21 19:31:44
言語 Fortran
(gFortran 14.2.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,352 ms
コンパイル使用メモリ 39,680 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-21 19:31:47
合計ジャッジ時間 1,496 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

program yukiNo3002
    implicit none
    integer A, B
    
    read *, A, B
    
    if (mod(B, 3) .eq. 0) then
        print *, 0, A
    else if (mod(B, 3) .eq. 1) then
        print *, A, 0
    else
        print *, -A, -A
    end if
end program yukiNo3002
0