結果

問題 No.292 芸名
ユーザー jjjj
提出日時 2016-07-31 19:51:48
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 932 ms
コンパイル使用メモリ 26,980 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-06 18:38:47
合計ジャッジ時間 1,052 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 1 ms
4,384 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,384 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,384 KB
testcase_10 AC 1 ms
4,384 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

  character*50::S
  integer::t,u,length
  read*, S,t,u
  length = LEN_TRIM(S)
  t = t+1
  u = u+1
  if(t.eq.u) then
     S(t:length-1) = S(t+1:length)
     S(length:length)=''
  else
     if(t.lt.u) then
        S(t:length-1) = S(t+1:length)
        S(u-1:length-2) = S(u:length-1)
     else
        S(u:length-1) = S(u+1:length)
        S(t-1:length-2) = S(t:length-1)
     end if
     S(length-1:length)=''
  end if
  print '(a)',S
end program
0