結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | te-sh |
提出日時 | 2016-08-27 04:34:31 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 96,640 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 03:42:13 |
合計ジャッジ時間 | 1,344 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import std.algorithm, std.array, std.range; import std.string, std.conv; import std.stdio, std.typecons; void main() { auto l = readln.chomp.to!int; auto m = readln.chomp.to!int; auto n = readln.chomp.to!int; auto t = l * 100 + m * 25 + n; auto r = (t % 1000) / 100 + (t % 100) / 25 + (t % 25); writeln(r); }