結果
問題 | No.1794 Continued Fraction |
ユーザー |
|
提出日時 | 2023-08-05 13:09:50 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
RE
|
実行時間 | - |
コード長 | 523 bytes |
コンパイル時間 | 5,514 ms |
コンパイル使用メモリ | 145,308 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 10:15:20 |
合計ジャッジ時間 | 9,725 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 RE * 9 |
ソースコード
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}")if(remainder = 0)do cui@print("\n")retend ifwhile(remainder <> 1)do n :: mdo m :: remainderdo quotient :: n / mdo remainder :: n % mdo cui@print(" \{quotient}")end whiledo n :: mdo m :: remainderdo quotient :: n / mdo remainder :: n % mdo cui@print(" \{quotient}")do cui@print("\n")end func