結果
問題 |
No.1591 Two Digits
|
ユーザー |
![]() |
提出日時 | 2025-03-17 15:53:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 4,485 ms |
コンパイル使用メモリ | 26,368 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-17 15:53:50 |
合計ジャッジ時間 | 1,606 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | scanf("%d",&val); | ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void){ int val = 0; scanf("%d",&val); int count = 0; do { val /= 10; count++; } while (val > 0); if(count == 2){ printf("Yes"); }else{ printf("No"); } }