結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2015-08-31 09:45:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 19,968 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 16:46:26 |
合計ジャッジ時間 | 906 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d", &N); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>int main(void){int N;scanf("%d", &N);while(N>=6){N -= 6;printf("9");}if(N==5){printf("71\n");}else if(N==4){printf("11\n");}else if(N==3){printf("7\n");}else if(N==2){printf("1\n");}return 0;}