結果
問題 | No.756 チャンパーノウン定数 (1) |
ユーザー |
|
提出日時 | 2018-12-04 00:42:37 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 158 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 16:12:41 |
合計ジャッジ時間 | 1,143 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <stdio.h>int main(void) {int d;scanf("%d", &d);printf("%d\n", d < 10 ? d : d % 2 == 0 ? (d + 10) / 20 : (d - 10) / 2 % 10);return 0;}