結果

問題 No.661 ハローキティはりんご3個分
ユーザー 37zigen37zigen
提出日時 2018-03-09 23:34:34
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 483 ms
コンパイル使用メモリ 31,872 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-19 03:34:46
合計ジャッジ時間 820 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

program main
      implicit none
      Integer::i,j,k,n,m
      Integer::arr(0:4)
      read*,n
      do i=0,n-1
            read*,arr(i)
            if(MOD(arr(i),40)==0)then
                  print'("ikisugi")'
            else if(MOD(arr(i),8)==0)then
                  print'("iki")'
            else if(MOD(arr(i),10)==0)then
                  print'("sugi")'
            else
                  print*,arr(i)/3
            end if
      end do
end program main
0