結果

問題 No.2460 #強調#
コンテスト
ユーザー osada-yum
提出日時 2023-10-02 21:18:00
言語 Fortran
(gFortran 15.2.0)
コンパイル:
gfortran _filename_ -O2 -o ./a.out
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 503 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,428 ms
コンパイル使用メモリ 37,360 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-03 17:07:22
合計ジャッジ時間 2,028 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
純コード判定待ち
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

program yukicoder_2460
  use, intrinsic :: iso_fortran_env
  implicit none
  integer(int32), parameter :: max_len = 100
  character(len=max_len) :: s
  logical :: is_in_sharp
  integer(int32) :: i
  read(input_unit, *) s
  is_in_sharp = .false.
  do i = 1, len_trim(s)
     if (is_in_sharp) then
        if (s(i:i) == "#") stop
        write(output_unit, '(a)', advance = "no") s(i:i)
     end if
     if (s(i:i) == "#") then
        is_in_sharp = .true.
     end if
  end do
end program yukicoder_2460
0