結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 22:56:10 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 661 bytes |
コンパイル時間 | 1,571 ms |
コンパイル使用メモリ | 31,616 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 20:57:14 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 7 |
ソースコード
program mainimplicit noneinteger*8::i,jinteger*8::Ninteger*8::a,b,aa,bbinteger*8::aaa,bbbinteger*8::total=0read *,Ndo i=1,INT(sqrt(real(N)))if(MOD(N,i).ne.0) cyclea = ib = N/iaa = a+roundup(a)*bbb = a*roundup(b)+b! print *, a,b,aa,bbif(aa.eq.bb) thenaa = a*roundup(b)*btotal = total + 1elsetotal = total + 2end ifend doprint '(i0)', totalcontainsfunction roundup(a) result(aa)integer*8::a,aa,tmpaa = 1tmp = adoaa = aa*10tmp = tmp/10if(tmp.eq.0) exitend doend function roundupend program main