結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2016-10-14 22:34:20 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 745 ms |
| コンパイル使用メモリ | 13,696 KB |
| 実行使用メモリ | 14,080 KB |
| 最終ジャッジ日時 | 2026-05-16 10:23:43 |
| 合計ジャッジ時間 | 4,120 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 WA * 8 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
use bigint;
<>;
for(<>){
chomp;
$l=length;
$s=0;
$i=1;
$m=1;
for(/./g){
$t|=$_;
$s=($s+$_*$m)%9;
$m=$m*($l-$i)/$i;
++$i;
}
$s=9 if $s==0&&$t;
print$s,$/;
}
tails