結果
問題 | No.1794 Continued Fraction |
ユーザー |
|
提出日時 | 2023-08-05 13:14:30 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 390 bytes |
コンパイル時間 | 2,920 ms |
コンパイル使用メモリ | 146,196 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 10:20:26 |
合計ジャッジ時間 | 3,409 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
func main()var n: int :: cui@inputInt()var m: int :: cui@inputInt()var quotient: int :: n / mvar remainder: int :: n % mdo cui@print("\{quotient}")while(remainder > 1)do n :: mdo m :: remainderdo quotient :: n / mdo remainder :: n % mdo cui@print(" \{quotient}")end whileif(remainder <> 0)do cui@print(" \{m}")end ifdo cui@print("\n")end func