結果
問題 | No.2894 Monotonic Intervals |
ユーザー |
|
提出日時 | 2024-11-07 02:16:39 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 540 bytes |
コンパイル時間 | 2,159 ms |
コンパイル使用メモリ | 31,616 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-07 02:16:43 |
合計ジャッジ時間 | 3,411 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
!> This file was processed by `fypp`. !> Today's fortune: "Happy TLE", really OK? !> ランダムウォーク猿「'bit全探索' で はっぴー.」 !> ギャンブラー猿「AtCoder は運だ.」 program f902894 use, intrinsic :: iso_fortran_env !> auto use module implicit none integer(int32) :: n character, allocatable :: cs(:) integer(int32) :: i read(input_unit, *) n allocate(cs(0:n)) read(input_unit, '(*(a1))') cs(1:n) cs(0) = "|" write(output_unit, '(i0)') count(cs(0:n-1) /= cs(1:n)) end program f902894