結果
問題 | No.651 E869120 and Driving |
ユーザー |
![]() |
提出日時 | 2023-09-09 20:35:43 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 672 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 13:08:23 |
合計ジャッジ時間 | 795 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%d", &a); | ^~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int a; scanf("%d", &a); printf("%d:", 10 + a / 100); if((a % 100) / 10 * 6 < 10){ printf("0"); } printf("%d\n", (a % 100) / 10 * 6); return 0; }