結果
問題 | No.1794 Continued Fraction |
ユーザー |
|
提出日時 | 2023-08-05 13:12:08 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 2,222 ms |
コンパイル使用メモリ | 141,832 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 10:17:32 |
合計ジャッジ時間 | 3,778 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
func main()var n: int :: cui@inputInt()var m: int :: cui@inputInt()var quotient: intvar remainder: intdo quotient :: n / mdo remainder :: 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 n :: mdo m :: remainderdo quotient :: n / mdo remainder :: n % mdo cui@print(" \{quotient}")end ifdo cui@print("\n")end func