結果
問題 | No.432 占い(Easy) |
ユーザー |
![]() |
提出日時 | 2016-10-14 22:52:53 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 589 bytes |
コンパイル時間 | 1,448 ms |
コンパイル使用メモリ | 32,512 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-22 08:18:45 |
合計ジャッジ時間 | 1,066 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 |
ソースコード
program mainimplicit noneinteger::T,i,j,lencharacter*1000::Sinteger::ss(1000)read *,Tdo i=1,Tread *,Slen = LEN_TRIM(S)do j=1,lenss(j) = ICHAR(S(j:j))-ICHAR('0')end docall uranai(ss, len)end docontainssubroutine uranai(ss, len)integer::ss(1000)integer::len,i,j,tmpdo i=1,len-1do j=1,len-iss(j) = ss(j) + ss(j+1)if(ss(j).ge.10) thenss(j) = ss(j)/10 + ss(j)-10end ifend doend doprint '(i0)', ss(1)end subroutine uranaiend program main